Skip to content

Commit

Permalink
feat: Include RENAME in DDL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
killah777 committed Jan 13, 2024
1 parent a3e7ba5 commit 63e38fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/spanner_dbapi/parse_utils.py
Expand Up @@ -155,7 +155,7 @@

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

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

Expand Down

0 comments on commit 63e38fb

Please sign in to comment.