summaryrefslogtreecommitdiff
path: root/test/sql/test_insert.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_insert.py')
-rw-r--r--test/sql/test_insert.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/sql/test_insert.py b/test/sql/test_insert.py
index a128db8a9..95a8d02a2 100644
--- a/test/sql/test_insert.py
+++ b/test/sql/test_insert.py
@@ -951,7 +951,9 @@ class EmptyTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL):
table1 = self.tables.mytable
dialect = default.DefaultDialect()
- dialect.supports_empty_insert = dialect.supports_default_values = True
+ dialect.supports_empty_insert = False
+ dialect.supports_default_values = True
+ dialect.supports_default_metavalue = True
stmt = table1.insert().values({})
self.assert_compile(
@@ -961,6 +963,14 @@ class EmptyTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL):
for_executemany=True,
)
+ dialect.supports_default_metavalue = False
+ self.assert_compile(
+ stmt,
+ "INSERT INTO mytable DEFAULT VALUES",
+ dialect=dialect,
+ for_executemany=True,
+ )
+
def test_supports_empty_insert_false(self):
table1 = self.tables.mytable