File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Features:
1515
1616Fixed:
1717
18+ - The PostgreSQL backend quotes database names now for CREATE and DROP,
19+ enabling more exotic tracker names. Closes issue2550497.
20+ Thanks to Sebastian Harl for providing the patch. (Bernhard Reiter)
1821- Updated the url to point to www.roundup-tracker.org in two places in the
1922 docs. (Bernhard Reiter)
2023- Do not depend on a CPython implementation detail anymore to make Roundup
Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ def connection_dict(config, dbnamestr=None):
3535
3636def db_create (config ):
3737 """Clear all database contents and drop database itself"""
38- command = "CREATE DATABASE %s WITH ENCODING='UNICODE'" % config .RDBMS_NAME
38+ command = "CREATE DATABASE \" %s \" WITH ENCODING='UNICODE'" % config .RDBMS_NAME
3939 if config .RDBMS_TEMPLATE :
4040 command = command + " TEMPLATE=%s" % config .RDBMS_TEMPLATE
4141 logging .getLogger ('roundup.hyperdb' ).info (command )
4242 db_command (config , command )
4343
4444def db_nuke (config , fail_ok = 0 ):
4545 """Clear all database contents and drop database itself"""
46- command = 'DROP DATABASE %s ' % config .RDBMS_NAME
46+ command = 'DROP DATABASE "%s" ' % config .RDBMS_NAME
4747 logging .getLogger ('roundup.hyperdb' ).info (command )
4848 db_command (config , command )
4949
You can’t perform that action at this time.
0 commit comments