]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Render parenthesis around sqlite expression defaults
authorBartlomiej Biernacki <pax0r@o2.pl>
Thu, 31 Jan 2019 14:33:01 +0000 (09:33 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 2 Feb 2019 03:04:37 +0000 (22:04 -0500)
commit104bb349803d176b617ad196e4c12294f4cfb035
tree7dc7acfb84817411ea237b3520fb7037af163c75
parentf9ccd2920d2e1c5f0ce133092335b39a7dfcf72c
Render parenthesis around sqlite expression defaults

Fixed bug in SQLite DDL where using an expression as a server side default
required that it be contained within parenthesis to be accepted by the
sqlite parser.  Pull request courtesy Bartlomiej Biernacki.

Fixes: #4474
Closes: #4475
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4475
Pull-request-sha: 0af3238c69c2610333cf62082c12047d45c31ce0

Change-Id: I888c69bfba5a5ab8ffa420f512557ac311a36b31
(cherry picked from commit f7ce37e9dd493d4b60b3156f08ef4c98fd63904d)
(cherry picked from commit 620bfde695079eeab35467086956764616de037c)
doc/build/changelog/unreleased_12/4474.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py