]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Modifications to allow the backends to control the behavior of an empty insert. ...
authorMichael Trier <mtrier@gmail.com>
Mon, 20 Oct 2008 15:21:00 +0000 (15:21 +0000)
committerMichael Trier <mtrier@gmail.com>
Mon, 20 Oct 2008 15:21:00 +0000 (15:21 +0000)
commitc81c7ff3d59469cf6ceccbcf1593fd0563f0eaf3
treed12139bc6c793c7190c3fb1d344a49c37080d635
parentabcb5605f91ef206dd5f0f6400302f0b28425365
Modifications to allow the backends to control the behavior of an empty insert.  If supports_empty_insert is True then the backend specifically supports the 'insert into t1 () values ()' syntax.  If supports_default_values is True then the backend supports the 'insert into t1 default values' syntax.  If both are false then the backend has no support for empty inserts at all and an exception gets raised. Changes here are careful to not change current behavior except where the current behavior was failing to begin with.
lib/sqlalchemy/databases/mssql.py
lib/sqlalchemy/databases/postgres.py
lib/sqlalchemy/databases/sqlite.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/compiler.py
test/sql/defaults.py