Skip to content

Commit 02c8a79

Browse files
author
Richard Jones
committed
another psql 8.3 compat fix
1 parent 184b657 commit 02c8a79

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Fixed:
77
- xml-rpc security checks and tests across all backends (sf #1907211)
88
- Send a Precedence header in email so autoresponders don't
99
- Fix mailgw total failure bounce message generation (thanks Bradley Dean)
10-
- Fix for postgres 8.3 compatibility (and bug) (sf patch #2030479)
10+
- Fix for postgres 8.3 compatibility (and bug) (sf patch #2030479 and bug
11+
#1959261)
1112
- Fix for translations (sf patch #2032526)
1213
- Fire reactors after file storage is all done (sf patch #2001243)
1314
- Allow negative ids other than -1 for item generation (sf patch #1982481)

roundup/backends/indexer_rdbms.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: indexer_rdbms.py,v 1.15 2006-10-04 01:12:00 richard Exp $
1+
#$Id: indexer_rdbms.py,v 1.16 2008-08-07 06:05:53 richard Exp $
22
''' This implements the full-text indexer over two RDBMS tables. The first
33
is a mapping of words to occurance IDs. The second maps the IDs to (Class,
44
propname, itemid) instances.
@@ -38,6 +38,11 @@ def add_text(self, identifier, text, mime_type='text/plain'):
3838
if mime_type != 'text/plain':
3939
return
4040

41+
# Ensure all elements of the identifier are integers 'cos the itemid
42+
# column is varchar even if item ids may be numbers elsewhere in the
43+
# code. ugh.
44+
identifier = map(str, identifier)
45+
4146
# first, find the id of the (classname, itemid, property)
4247
a = self.db.arg
4348
sql = 'select _textid from __textids where _class=%s and '\

0 commit comments

Comments
 (0)