From 63e38fba636868dcb822e5236ae018996a2c781d Mon Sep 17 00:00:00 2001 From: Scott Nam Date: Fri, 12 Jan 2024 16:34:26 -0800 Subject: [PATCH] feat: Include RENAME in DDL regex --- google/cloud/spanner_dbapi/parse_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/spanner_dbapi/parse_utils.py b/google/cloud/spanner_dbapi/parse_utils.py index 008f21bf93..6d3890ac44 100644 --- a/google/cloud/spanner_dbapi/parse_utils.py +++ b/google/cloud/spanner_dbapi/parse_utils.py @@ -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)