]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add Sequence to StrSQLCompiler
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 11 Nov 2018 02:10:51 +0000 (21:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 11 Nov 2018 02:10:51 +0000 (21:10 -0500)
commit8318a98a60dabf0919f4998e4df32db804ffd3bb
tree760c2bb00f50b5d868b8d228fc9fac04767bceb4
parentab1e6fb08f7cfbba94f0115368f08f6130bf0018
Add Sequence to StrSQLCompiler

Added :class:`.Sequence` to the "string SQL" system that will render a
meaningful string expression (``"<next sequence value: my_sequence>"``)
when stringifying without a dialect a statement that includes a "sequence
nextvalue" expression, rather than raising a compilation error.

Fixes: #4144
Change-Id: Ia910f0e22008a7cde7597365954ede324101cf4d
doc/build/changelog/unreleased_13/4144.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_compiler.py