Skip to content

Commit 377c7b9

Browse files
author
Richard Jones
committed
backport of mail address case problem from HEAD
1 parent c203292 commit 377c7b9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ are given with the most recent entry first.
88
- required String properties not being flagged (thanks Ajit George)
99
- only look for CSV files when importing (thanks Dan Grassi)
1010
- can now unset values in CSV editing (sf bug 704788)
11+
- fixed rdbms email address lookup (case insensitivity)
1112

1213

1314
2003-02-27 0.5.6

roundup/backends/rdbms_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.27.2.7 2003-03-14 02:52:03 richard Exp $
1+
# $Id: rdbms_common.py,v 1.27.2.8 2003-03-24 04:53:14 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1666,7 +1666,7 @@ def stringFind(self, **requirements):
16661666
args.append(requirements[propname].lower())
16671667

16681668
# generate the where clause
1669-
s = ' and '.join(['_%s=%s'%(col, self.db.arg) for col in where])
1669+
s = ' and '.join(['lower(_%s)=%s'%(col, self.db.arg) for col in where])
16701670
sql = 'select id from _%s where %s'%(self.classname, s)
16711671
self.db.sql(sql, tuple(args))
16721672
l = [x[0] for x in self.db.sql_fetchall()]

test/test_mailgw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_mailgw.py,v 1.37.2.1 2003-02-06 05:44:49 richard Exp $
11+
# $Id: test_mailgw.py,v 1.37.2.2 2003-03-24 04:53:15 richard Exp $
1212

1313
import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
1414

@@ -122,7 +122,7 @@ def testNewIssueNosy(self):
122122
self.instance.config.ADD_AUTHOR_TO_NOSY = 'yes'
123123
message = cStringIO.StringIO('''Content-Type: text/plain;
124124
charset="iso-8859-1"
125-
From: Chef <chef@bork.bork.bork>
125+
From: Chef <Chef@bork.bork.bork>
126126
127127
Cc: richard@test
128128
Message-Id: <dummy_test_message_id>
@@ -143,7 +143,7 @@ def testNewIssueNosy(self):
143143
def testAlternateAddress(self):
144144
message = cStringIO.StringIO('''Content-Type: text/plain;
145145
charset="iso-8859-1"
146-
From: John Doe <john.doe@test>
146+
From: john doe <John.Doe@test>
147147
148148
Message-Id: <dummy_test_message_id>
149149
Subject: [issue] Testing...

0 commit comments

Comments
 (0)