Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #20785 -- Corrected exception caught for Oracle LIKE operator d…


The code that tests to see which LIKE expressions to use now runs
using non-error-wrapped cursor, so cx_Oracle exceptions need to be caught
rather than Django DatabaseErrors.

Thanks Trac user ludo for report and initial patch.
  • Loading branch information...
commit 6ed579e7eb6e1eda3dd1b0afb306d58b9498bfa0 1 parent 05ea5a2
@shaib shaib authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/oracle/
2  django/db/backends/oracle/
@@ -578,7 +578,7 @@ def init_connection_state(self):
cursor.execute("SELECT 1 FROM DUAL WHERE DUMMY %s"
% self._standard_operators['contains'],
- except utils.DatabaseError:
+ except DatabaseError:
self.operators = self._likec_operators
self.operators = self._standard_operators

0 comments on commit 6ed579e

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