diff options
| author | Matt Boersma <matt@sprout.org> | 2009-01-16 22:24:45 +0000 |
|---|---|---|
| committer | Matt Boersma <matt@sprout.org> | 2009-01-16 22:24:45 +0000 |
| commit | f0e35e1bbe9c5e35717482c5c5df11abfc70fd76 (patch) | |
| tree | ae315baad2f18fbcf0bbdd3463f23f6a516796b2 /tests/regressiontests | |
| parent | 4268ef3fdcb3662e382714f3894bc90eabc37181 (diff) | |
[1.0.X] Fixed #5543: callproc() and friends now work with Oracle and our FormatStylePlaceholderCursor.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/backends/tests.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/regressiontests/backends/tests.py b/tests/regressiontests/backends/tests.py new file mode 100644 index 0000000000..5dec9feee6 --- /dev/null +++ b/tests/regressiontests/backends/tests.py @@ -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() |
