Fixed an Oracle test failure introduced by 1e404180c1
.
This commit is contained in:
parent
efcbf3e095
commit
e98c5513cb
|
@ -28,11 +28,13 @@ class SQLCommandsTestCase(TestCase):
|
||||||
for statement in output:
|
for statement in output:
|
||||||
create_table = create_table_re.match(statement)
|
create_table = create_table_re.match(statement)
|
||||||
if create_table:
|
if create_table:
|
||||||
tables.add(create_table.group('table'))
|
# Lower since Oracle's table names are upper cased.
|
||||||
|
tables.add(create_table.group('table').lower())
|
||||||
continue
|
continue
|
||||||
reference = reference_re.match(statement)
|
reference = reference_re.match(statement)
|
||||||
if reference:
|
if reference:
|
||||||
table = reference.group('table')
|
# Lower since Oracle's table names are upper cased.
|
||||||
|
table = reference.group('table').lower()
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
table, tables, "The table %s is referenced before its creation." % table
|
table, tables, "The table %s is referenced before its creation." % table
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue