mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
[boulder-oracle-sprint] fix quoting for tempfile
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c4e56c225a
commit
1898c6baa7
@ -82,7 +82,7 @@ def _create_test_db(cursor, backend, dbname, verbosity):
|
|||||||
print "_create_test_db(): dbname = %s" % dbname
|
print "_create_test_db(): dbname = %s" % dbname
|
||||||
statements = [
|
statements = [
|
||||||
"""create tablespace "%(user)s"
|
"""create tablespace "%(user)s"
|
||||||
datafile '%(user)s.dbf' size 10M autoextend on next 10M maxsize 20M
|
datafile '%(datafile)s' size 10M autoextend on next 10M maxsize 20M
|
||||||
""",
|
""",
|
||||||
"""create temporary tablespace %(user_temp)s
|
"""create temporary tablespace %(user_temp)s
|
||||||
tempfile '%(tempfile)s' size 10M autoextend on next 10M maxsize 20M
|
tempfile '%(tempfile)s' size 10M autoextend on next 10M maxsize 20M
|
||||||
@ -90,7 +90,7 @@ def _create_test_db(cursor, backend, dbname, verbosity):
|
|||||||
"""create user %(user)s
|
"""create user %(user)s
|
||||||
identified by %(password)s
|
identified by %(password)s
|
||||||
default tablespace %(user)s
|
default tablespace %(user)s
|
||||||
temporary tablespace %(user)s_temp
|
temporary tablespace %(user_temp)s
|
||||||
""",
|
""",
|
||||||
"""grant resource to %(user)s""",
|
"""grant resource to %(user)s""",
|
||||||
"""grant connect to %(user)s""",
|
"""grant connect to %(user)s""",
|
||||||
@ -113,6 +113,7 @@ def _execute_statements(cursor, statements, backend, dbname, verbosity):
|
|||||||
'user_temp': backend.quote_name(dbname + '_temp'),
|
'user_temp': backend.quote_name(dbname + '_temp'),
|
||||||
# purposefully *not* using backend.quote_name here
|
# purposefully *not* using backend.quote_name here
|
||||||
'tempfile': dbname + '_temp.dat',
|
'tempfile': dbname + '_temp.dat',
|
||||||
|
'datafile': dbname + '.dbf',
|
||||||
'password': "Im a lumberjack"}
|
'password': "Im a lumberjack"}
|
||||||
if verbosity >= 2:
|
if verbosity >= 2:
|
||||||
print stmt
|
print stmt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user