]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Adjusted SQLiteDialect's check constraint reflection pattern to account for mix of...
authorJeff Horemans <jeff.horemans@vortex-financials.be>
Thu, 8 Aug 2024 08:04:33 +0000 (10:04 +0200)
committerJeff Horemans <jeff.horemans@vortex-financials.be>
Thu, 8 Aug 2024 08:04:33 +0000 (10:04 +0200)
lib/sqlalchemy/dialects/sqlite/base.py

index 61d6f8d8faf5d72dde50f3a7cb3e03d8d1e7f567..e001d0649e5018abb32946f047b2c09fda5a4a6a 100644 (file)
@@ -2633,7 +2633,6 @@ class SQLiteDialect(default.DefaultDialect):
         #   or the end of the table definition e.g. newline and closing ')'.
         CHECK_PATTERN = r"(?:CONSTRAINT ([^\t\n]+) )?CHECK \((.+?)\)(?:, *\n\t?(?=CONSTRAINT|CHECK)|\n\))"
         cks = []
-        print(table_data)
         for match in re.finditer(CHECK_PATTERN, table_data or "", re.I|re.S):
             name = match.group(1)