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/dialects/postgresql/base.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/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index c5b0db6ce..0160239b7 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1489,7 +1489,7 @@ class PGCompiler(compiler.SQLCompiler): value = value.replace('\\', '\\\\') return value - def visit_sequence(self, seq): + def visit_sequence(self, seq, **kw): return "nextval('%s')" % self.preparer.format_sequence(seq) def limit_clause(self, select, **kw): |