Skip to content

Commit 3669303

Browse files
feat: Include RENAME in DDL regex (#1075)
Co-authored-by: Sri Harsha CH <[email protected]>
1 parent b0a31e9 commit 3669303

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google/cloud/spanner_dbapi/parse_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@
154154

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

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

0 commit comments

Comments
 (0)