Skip to content

Commit e30a807

Browse files
author
Richard Jones
committed
escape all uses of "schema" in mysql backend [SF#1397569]
1 parent a1c4585 commit e30a807

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

CHANGES.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ Fixed:
1414
- incompatibility with python2.3 in the mailer module (sf bug 1432602)
1515
- typo in SMTP TLS option name: "MAIL_TLS_CERFILE" (sf bug 1435452)
1616
- email obfuscation code in html templating is more robust
17-
- fix blank-title subject line handling (sf bug 1442121)
18-
- fix "All users may only view and edit issues, files and messages they
17+
- blank-title subject line handling (sf bug 1442121)
18+
- "All users may only view and edit issues, files and messages they
1919
create" example in docs (sf bug 1439086)
20-
- fix saving of queries (sf bug 1436169)
21-
- fix "Adding a new constrained field to the classic schema" example in docs
20+
- saving of queries (sf bug 1436169)
21+
- "Adding a new constrained field to the classic schema" example in docs
2222
(sf bug 1433118)
23-
- fix security check in mailgw (sf bug 1442145)
24-
- fix "clear this message" (sf bug 1429367)
23+
- security check in mailgw (sf bug 1442145)
24+
- "clear this message" (sf bug 1429367)
25+
- escape all uses of "schema" in mysql backend (sf bug 1397569)
2526

2627

2728
2006-02-10 1.1.0

roundup/backends/back_mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_mysql.py,v 1.66 2006-01-30 00:36:26 richard Exp $
1+
#$Id: back_mysql.py,v 1.67 2006-03-03 01:02:26 richard Exp $
22
#
33
# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected]>
44
#
@@ -166,7 +166,7 @@ def open_connection(self):
166166
if message[0] != ER.NO_SUCH_TABLE:
167167
raise DatabaseError, message
168168
self.init_dbschema()
169-
self.sql("CREATE TABLE schema (schema TEXT) TYPE=%s"%
169+
self.sql("CREATE TABLE `schema` (`schema` TEXT) TYPE=%s"%
170170
self.mysql_backend)
171171
self.sql('''CREATE TABLE ids (name VARCHAR(255),
172172
num INTEGER) TYPE=%s'''%self.mysql_backend)

0 commit comments

Comments
 (0)