]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support DEFAULT VALUES and VALUES(DEFAULT) individually
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Apr 2021 14:52:00 +0000 (10:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Apr 2021 16:51:58 +0000 (12:51 -0400)
commit94a1c523984e2082bb16d784cf8615061ba9d49a
tree73892187edabbfa4a371631c3407510cfdea9313
parentde7f14104d5278987fa72d6866fa39569e56077e
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
17 files changed:
doc/build/changelog/unreleased_14/6254.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/assertsql.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_insert.py
test/engine/test_deprecations.py
test/orm/inheritance/test_basic.py
test/requirements.py
test/sql/test_defaults.py
test/sql/test_insert.py