summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2014-08-28 19:33:36 -0400
committerSimon Charette <charette.s@gmail.com>2014-08-28 19:37:21 -0400
commitf201cfae12961c60d293201add0c09a4e3024533 (patch)
tree2f694fdc244b05075218065dee366cf0a0df81fe
parent8f033ee04b2422078e1bd4a2a5b554247d0c4752 (diff)
[1.7.x] Fixed an Oracle test failure introduced by 1e404180c1.
Backport of e98c5513cb from master
-rw-r--r--tests/commands_sql/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/commands_sql/tests.py b/tests/commands_sql/tests.py
index d057883728..3d9e234ff0 100644
--- a/tests/commands_sql/tests.py
+++ b/tests/commands_sql/tests.py
@@ -28,11 +28,13 @@ class SQLCommandsTestCase(TestCase):
for statement in output:
create_table = create_table_re.match(statement)
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
reference = reference_re.match(statement)
if reference:
- table = reference.group('table')
+ # Lower since Oracle's table names are upper cased.
+ table = reference.group('table').lower()
self.assertIn(
table, tables, "The table %s is referenced before its creation." % table
)