1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #5543: callproc() and friends now work with Oracle and our FormatStylePlaceholderCursor.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Matt Boersma
2009-01-16 22:23:58 +00:00
parent 6332ad4804
commit b41a45f8e5
2 changed files with 49 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Unit tests for specific database backends.
import unittest
from django.db import connection
from django.conf import settings
class Callproc(unittest.TestCase):
def test_dbms_session(self):
# If the backend is Oracle, test that we can call a standard
# stored procedure through our cursor wrapper.
if settings.DATABASE_ENGINE == 'oracle':
cursor = connection.cursor()
cursor.callproc('DBMS_SESSION.SET_IDENTIFIER',
['_django_testing!',])
return True
else:
return True
if __name__ == '__main__':
unittest.main()