Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #15534: Made the Oracle runtime test for regex capabilities use…

… the !DatabaseOperations connection instead of grabbing the default connection.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b4c83138e9daa0be301d1f18458609f003d19922 1 parent 487cd1f
@ikelly ikelly authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/db/backends/oracle/
5 django/db/backends/oracle/
@@ -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(),)

0 comments on commit b4c8313

Please sign in to comment.
Something went wrong with that request. Please try again.