Skip to content

Commit

Permalink
The group names are supposed to be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jpm committed Dec 14, 2003
1 parent 8e15d69 commit cb91e39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions storage/mysql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2002 Joao Prado Maia. See the LICENSE file for more information.
# $Id: mysql.py,v 1.39 2002-12-12 05:55:13 jpm Exp $
# $Id: mysql.py,v 1.40 2003-12-14 18:59:03 jpm Exp $
import MySQLdb
import time
import re
Expand Down Expand Up @@ -42,7 +42,7 @@ def group_exists(self, group_name):
FROM
papercut_groups
WHERE
name='%s'""" % (group_name)
LOWER(name)=LOWER('%s')""" % (group_name)
self.cursor.execute(stmt)
return self.cursor.fetchone()[0]

Expand Down
4 changes: 2 additions & 2 deletions storage/phorum_mysql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2002 Joao Prado Maia. See the LICENSE file for more information.
# $Id: phorum_mysql.py,v 1.42 2003-09-19 03:13:03 jpm Exp $
# $Id: phorum_mysql.py,v 1.43 2003-12-14 18:59:03 jpm Exp $
import MySQLdb
import time
from mimify import mime_encode_header, mime_decode_header
Expand Down Expand Up @@ -59,7 +59,7 @@ def group_exists(self, group_name):
FROM
forums
WHERE
nntp_group_name='%s'""" % (group_name)
LOWER(nntp_group_name)=LOWER('%s')""" % (group_name)
self.cursor.execute(stmt)
return self.cursor.fetchone()[0]

Expand Down
4 changes: 2 additions & 2 deletions storage/phorum_pgsql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2002 Joao Prado Maia. See the LICENSE file for more information.
# $Id: phorum_pgsql.py,v 1.8 2003-09-19 03:13:03 jpm Exp $
# $Id: phorum_pgsql.py,v 1.9 2003-12-14 18:59:03 jpm Exp $
from pyPgSQL import PgSQL
import time
from mimify import mime_encode_header, mime_decode_header
Expand Down Expand Up @@ -56,7 +56,7 @@ def group_exists(self, group_name):
FROM
forums
WHERE
nntp_group_name='%s'""" % (group_name)
LOWER(nntp_group_name)=LOWER('%s')""" % (group_name)
self.cursor.execute(stmt)
return self.cursor.fetchone()[0]

Expand Down
4 changes: 2 additions & 2 deletions storage/phpbb_mysql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2002 Joao Prado Maia. See the LICENSE file for more information.
# $Id: phpbb_mysql.py,v 1.13 2003-09-19 03:13:03 jpm Exp $
# $Id: phpbb_mysql.py,v 1.14 2003-12-14 18:59:03 jpm Exp $
import MySQLdb
import time
from mimify import mime_encode_header, mime_decode_header
Expand Down Expand Up @@ -61,7 +61,7 @@ def group_exists(self, group_name):
FROM
%sforums
WHERE
nntp_group_name='%s'""" % (settings.phpbb_table_prefix, group_name)
LOWER(nntp_group_name)=LOWER('%s')""" % (settings.phpbb_table_prefix, group_name)
self.cursor.execute(stmt)
return self.cursor.fetchone()[0]

Expand Down

0 comments on commit cb91e39

Please sign in to comment.