Skip to content

Commit c89ef10

Browse files
committed
Allow RENAME in DDL
1 parent a3e7ba5 commit c89ef10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/spanner_dbapi/parse_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155

156156
# DDL statements follow
157157
# https://cloud.google.com/spanner/docs/data-definition-language
158-
RE_DDL = re.compile(r"^\s*(CREATE|ALTER|DROP|GRANT|REVOKE)", re.IGNORECASE | re.DOTALL)
158+
RE_DDL = re.compile(r"^\s*(CREATE|ALTER|DROP|GRANT|REVOKE|RENAME)", re.IGNORECASE | re.DOTALL)
159159

160160
RE_IS_INSERT = re.compile(r"^\s*(INSERT)", re.IGNORECASE | re.DOTALL)
161161

0 commit comments

Comments
 (0)