Skip to content

Commit

Permalink
Fixed #15534: Made the Oracle runtime test for regex capabilities use…
Browse files Browse the repository at this point in the history
… the !DatabaseOperations connection instead of grabbing the default connection.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
nightflyerkilo committed Apr 18, 2011
1 parent 487cd1f commit b4c8313
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions django/db/backends/oracle/base.py
Expand Up @@ -258,9 +258,8 @@ def regex_lookup_10(self, lookup_type):
def regex_lookup(self, lookup_type):
# If regex_lookup is called before it's been initialized, then create
# a cursor to initialize it and recur.
from django.db import connection
connection.cursor()
return connection.ops.regex_lookup(lookup_type)
self.connection.cursor()
return self.connection.ops.regex_lookup(lookup_type)

def return_insert_id(self):
return "RETURNING %s INTO %%s", (InsertIdVar(),)
Expand Down

0 comments on commit b4c8313

Please sign in to comment.