[1.6.x] Fixed #20785 -- Corrected exception caught for Oracle LIKE operator detection
[1.6.x] Fixed #20785 -- Corrected exception caught for Oracle LIKE operator detection

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.

dex4er/django,redhat-openstack/django,django-nonrel/django,dex4er/django,django-nonrel/django,felixjimenez/django,redhat-openstack/django,dex4er/django,felixjimenez/django,redhat-openstack/django,felixjimenez/django,redhat-openstack/django,felixjimenez/django,django-nonrel/django,django-nonrel/django