]> 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:22 +0000 (22:04 -0500)
commit620bfde695079eeab35467086956764616de037c
treea25675d8b6ed2b0000ebd999c51853c100c24cde
parent5ae8a54ed381735a88141b8ec5326b21c36e793b
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)
doc/build/changelog/unreleased_12/4474.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py