Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Fixed introspection test case which caused "ORA-00972: identi…

…fier is too long" errors against Oracle.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c17547ac50959f7df9e2b8288bae55806c433782 1 parent 5acc583
@mboersma mboersma authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/regressiontests/introspection/tests.py
View
12 tests/regressiontests/introspection/tests.py
@@ -50,10 +50,10 @@ def test_table_names(self):
def test_django_table_names(self):
cursor = connection.cursor()
- cursor.execute('CREATE TABLE django_introspection_test_table (id INTEGER);');
+ cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);');
tl = connection.introspection.django_table_names()
- cursor.execute("DROP TABLE django_introspection_test_table;")
- self.assert_('django_introspection_testcase_table' not in tl,
+ cursor.execute("DROP TABLE django_ixn_test_table;")
+ self.assert_('django_ixn_testcase_table' not in tl,
"django_table_names() returned a non-Django table")
def test_installed_models(self):
@@ -83,9 +83,9 @@ def test_get_table_description_types(self):
if settings.DATABASE_ENGINE.startswith('postgresql'):
def test_postgresql_real_type(self):
cursor = connection.cursor()
- cursor.execute("CREATE TABLE django_introspection_real_test_table (number REAL);")
- desc = connection.introspection.get_table_description(cursor, 'django_introspection_real_test_table')
- cursor.execute('DROP TABLE django_introspection_real_test_table;')
+ cursor.execute("CREATE TABLE django_ixn_real_test_table (number REAL);")
+ desc = connection.introspection.get_table_description(cursor, 'django_ixn_real_test_table')
+ cursor.execute('DROP TABLE django_ixn_real_test_table;')
self.assertEqual(datatype(desc[0][1]), 'FloatField')
def test_get_relations(self):
Please sign in to comment.
Something went wrong with that request. Please try again.