Skip to content

Commit

Permalink
feat: Include RENAME in DDL regex (#1075)
Browse files Browse the repository at this point in the history
Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
  • Loading branch information
killah777 and harshachinta committed Feb 17, 2024
1 parent b0a31e9 commit 3669303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google/cloud/spanner_dbapi/parse_utils.py
Expand Up @@ -154,7 +154,9 @@

# 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 3669303

Please sign in to comment.