mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #29048 -- Added **extra_context to database function as_vendor() methods.
This commit is contained in:
parent
08f360355a
commit
83b04d4f88
11 changed files with 108 additions and 83 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue