From: Harutaka Kawamura Date: Wed, 4 Sep 2024 09:52:27 +0000 (+0900) Subject: Fix regex X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a10fcef45ccfad6ebf17ec94fc48d0965f0d4123;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix regex --- diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py index cf8f16966b..5e32e2fbb0 100644 --- a/lib/sqlalchemy/dialects/sqlite/base.py +++ b/lib/sqlalchemy/dialects/sqlite/base.py @@ -2674,7 +2674,7 @@ class SQLiteDialect(default.DefaultDialect): # (1) Matches end of check constraint with trailing comma, # optional whitespace (including newline), and the beginning # of the next constraint (either named or unnamed). - ,[\s\n]*(?=CONSTRAINT|CHECK) + ,[\s\n]*(?=CONSTRAINT|CHECK|UNIQUE|FOREIGN|PRIMARY) # OR operator, seperating (1) & (2) | # (2) Matches end parenthesis of table definition, seperated by