From b4eb29253cb29a069973503f36d1103d4a18311c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 4 Apr 2018 13:36:28 -0400 Subject: 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 --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql') 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 -- cgit v1.2.1