summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-04-13 10:52:00 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-04-14 12:51:58 -0400
commit94a1c523984e2082bb16d784cf8615061ba9d49a (patch)
tree73892187edabbfa4a371631c3407510cfdea9313 /test/orm/inheritance/test_basic.py
parentde7f14104d5278987fa72d6866fa39569e56077e (diff)
downloadsqlalchemy-94a1c523984e2082bb16d784cf8615061ba9d49a.tar.gz
Support DEFAULT VALUES and VALUES(DEFAULT) individually
Fixed regression where the introduction of the INSERT syntax "INSERT... VALUES (DEFAULT)" was not supported on some backends that do however support "INSERT..DEFAULT VALUES", including SQLite. The two syntaxes are now each individually supported or non-supported for each dialect, for example MySQL supports "VALUES (DEFAULT)" but not "DEFAULT VALUES". Support for Oracle is still not enabled as there are unresolved issues in using RETURNING at the same time. Fixes: #6254 Change-Id: I47959bc826e3d9d2396ccfa290eb084841b02e77
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index 8769d2b39..1b4a367ac 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -1835,7 +1835,8 @@ class JoinedNoFKSortingTest(fixtures.MappedTest):
testing.db,
sess.flush,
Conditional(
- testing.db.dialect.insert_executemany_returning,
+ testing.db.dialect.insert_executemany_returning
+ and testing.db.dialect.supports_default_metavalue,
[
CompiledSQL(
"INSERT INTO a (id) VALUES (DEFAULT)", [{}, {}, {}, {}]