From e98c5513cb63ea8e1db28a3ea01b157fb11dfed1 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 28 Aug 2014 19:33:36 -0400 Subject: [PATCH] Fixed an Oracle test failure introduced by 1e404180c1. --- tests/commands_sql/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/commands_sql/tests.py b/tests/commands_sql/tests.py index 293e5d16a0..6139bbafa2 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 )