]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Escape literal string values passed to server_default
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Sep 2016 13:23:50 +0000 (09:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Sep 2016 13:23:50 +0000 (09:23 -0400)
commit079df65dc0f71ea4d1771b6ae17e13242c766517
tree2b42abaa29461b6839b1c7115bad9a7faa3beae9
parent800a18aff2927433163afec3b7a4671eabe1c2e3
Escape literal string values passed to server_default

A string sent as a column default via the
:paramref:`.Column.server_default` parameter is now escaped for quotes.

This change is backwards compatible with code that may have been
working around this previously.

Change-Id: I341298a76cc67bc0a53df4ab51ab9379f2294cdd
Fixes: #3809
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/sql/compiler.py
test/sql/test_defaults.py