Fixed #29048 -- Added **extra_context to database function as_vendor() methods.

This commit is contained in:
priyanshsaxena 2018-02-08 12:39:00 +05:30 committed by Tim Graham
parent 08f360355a
commit 83b04d4f88
11 changed files with 108 additions and 83 deletions

View file

@ -34,7 +34,7 @@ class Div3Transform(models.Transform):
lhs, lhs_params = compiler.compile(self.lhs)
return '(%s) %%%% 3' % lhs, lhs_params
def as_oracle(self, compiler, connection):
def as_oracle(self, compiler, connection, **extra_context):
lhs, lhs_params = compiler.compile(self.lhs)
return 'mod(%s, 3)' % lhs, lhs_params