From 6f61510504b540b578919a746b63372f651aaf86 Mon Sep 17 00:00:00 2001 From: Jeff Horemans Date: Thu, 8 Aug 2024 14:51:05 +0200 Subject: [PATCH] Expanded SQLite check constraint reflection tests with constraint name that containts the 'check' keyword. --- test/dialect/test_sqlite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py index a479b63ad3..255d8857bd 100644 --- a/test/dialect/test_sqlite.py +++ b/test/dialect/test_sqlite.py @@ -1821,8 +1821,8 @@ class ConstraintReflectionTest(fixtures.TestBase): CheckConstraint("id > 0"), # Constraint definition with newline and tab characters CheckConstraint("((value > 0) AND \n\t(value < 100) AND \n\t(value != 50))", name='ck_r_value_multiline'), - # Constraint name with special characters. - CheckConstraint("value IS NOT NULL", name="^ck-r* #\n\t"), + # Constraint name with special characters and 'check' in the name + CheckConstraint("value IS NOT NULL", name="^check-r* #\n\t"), # Constraint definition with special characters. CheckConstraint("prefix NOT GLOB '*[^-. /#,]*'") ) @@ -2471,7 +2471,7 @@ class ConstraintReflectionTest(fixtures.TestBase): eq_( inspector.get_check_constraints("r"), [ - {"sqltext": "value IS NOT NULL", "name": "^ck-r* #\n\t"}, + {"sqltext": "value IS NOT NULL", "name": "^check-r* #\n\t"}, {"sqltext": "((value > 0) AND \n\t(value < 100) AND \n\t(value != 50))", "name": "ck_r_value_multiline"}, {"sqltext": "id > 0", "name": None}, {"sqltext": "prefix NOT GLOB '*[^-. /#,]*'", "name": None}, -- 2.47.3