diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-04-04 13:36:28 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-04-04 16:46:16 -0400 |
commit | b4eb29253cb29a069973503f36d1103d4a18311c (patch) | |
tree | d74797804981a1234b993569fa426e78ba7a6e00 /lib/sqlalchemy/sql/compiler.py | |
parent | 9f986ce10c6755af3f347a56f9ea03e0e2c5943e (diff) | |
download | sqlalchemy-b4eb29253cb29a069973503f36d1103d4a18311c.tar.gz |
Ensure all visit_sequence accepts **kw args
Fixed issue where the compilation of an INSERT statement with the
"literal_binds" option that also uses an explicit sequence and "inline"
generation, as on Postgresql and Oracle, would fail to accommodate the
extra keyword argument within the sequence processing routine.
Change-Id: Ibdab7d340aea7429a210c9535ccf1a3e85f074fb
Fixes: #4231
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 6c7e6145d..a442c65fd 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -934,7 +934,7 @@ class SQLCompiler(Compiled): def visit_next_value_func(self, next_value, **kw): return self.visit_sequence(next_value.sequence) - def visit_sequence(self, sequence): + def visit_sequence(self, sequence, **kw): raise NotImplementedError( "Dialect '%s' does not support sequence increments." % self.dialect.name |