summaryrefslogtreecommitdiff
path: root/tests/regressiontests/backends
diff options
context:
space:
mode:
authorIan Kelly <ian.g.kelly@gmail.com>2009-08-24 15:45:48 +0000
committerIan Kelly <ian.g.kelly@gmail.com>2009-08-24 15:45:48 +0000
commitdcf3be7a621f011a918453527406216a738acf68 (patch)
treef1abbdcb6e65ffa4c1000697226bc101d6f4c3a7 /tests/regressiontests/backends
parente263cc0dc53577d525aad0546fc1bd5939dc2e0b (diff)
Fixed #10566: Added support for cx_Oracle compiled with the WITH_UNICODE flag.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/backends')
-rw-r--r--tests/regressiontests/backends/tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/regressiontests/backends/tests.py b/tests/regressiontests/backends/tests.py
index aff27369ad..628fabf04a 100644
--- a/tests/regressiontests/backends/tests.py
+++ b/tests/regressiontests/backends/tests.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Unit and doctests for specific database backends.
import unittest
-from django.db import connection
+from django.db import backend, connection
from django.db.backends.signals import connection_created
from django.conf import settings
@@ -11,9 +11,10 @@ class Callproc(unittest.TestCase):
# If the backend is Oracle, test that we can call a standard
# stored procedure through our cursor wrapper.
if settings.DATABASE_ENGINE == 'oracle':
+ convert_unicode = backend.convert_unicode
cursor = connection.cursor()
- cursor.callproc('DBMS_SESSION.SET_IDENTIFIER',
- ['_django_testing!',])
+ cursor.callproc(convert_unicode('DBMS_SESSION.SET_IDENTIFIER'),
+ [convert_unicode('_django_testing!'),])
return True
else:
return True