1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +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:
Boulder Sprinters 2006-11-04 23:42:31 +00:00
parent c4e56c225a
commit 1898c6baa7

View File

@ -82,7 +82,7 @@ def _create_test_db(cursor, backend, dbname, verbosity):
print "_create_test_db(): dbname = %s" % dbname
statements = [
"""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
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
identified by %(password)s
default tablespace %(user)s
temporary tablespace %(user)s_temp
temporary tablespace %(user_temp)s
""",
"""grant resource 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'),
# purposefully *not* using backend.quote_name here
'tempfile': dbname + '_temp.dat',
'datafile': dbname + '.dbf',
'password': "Im a lumberjack"}
if verbosity >= 2:
print stmt