summaryrefslogtreecommitdiff
path: root/tests/regressiontests/backends
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-10-27 04:51:14 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2012-10-27 19:24:48 +0300
commit18357bf3acae0c70e4fd3b692efb4db7638cb574 (patch)
treedec899033d4d037f457ccfdd84b4a6d280104c02 /tests/regressiontests/backends
parentc902623d507f361dd4359d262d07952f75c008da (diff)
[1.5.x] Fixed Oracle failure for "%" in table name
Backpatch of 2249bd275cbae6b73716bf36f5f36def1bb4222e
Diffstat (limited to 'tests/regressiontests/backends')
-rw-r--r--tests/regressiontests/backends/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/backends/tests.py b/tests/regressiontests/backends/tests.py
index d284cfaac8..4766dcf44e 100644
--- a/tests/regressiontests/backends/tests.py
+++ b/tests/regressiontests/backends/tests.py
@@ -26,6 +26,14 @@ from . import models
class OracleChecks(unittest.TestCase):
@unittest.skipUnless(connection.vendor == 'oracle',
+ "No need to check Oracle quote_name semantics")
+ def test_quote_name(self):
+ # Check that '%' chars are escaped for query execution.
+ name = '"SOME%NAME"'
+ quoted_name = connection.ops.quote_name(name)
+ self.assertEquals(quoted_name % (), name)
+
+ @unittest.skipUnless(connection.vendor == 'oracle',
"No need to check Oracle cursor semantics")
def test_dbms_session(self):
# If the backend is Oracle, test that we can call a standard