mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed Oracle failure for "%" in table name
This commit is contained in:
parent
11699ac4b5
commit
2249bd275c
3 changed files with 19 additions and 4 deletions
|
@ -25,6 +25,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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue