Modify ↓
Opened 14 years ago
Closed 14 years ago
#7876 closed defect (fixed)
Double quotes do not work with PostgreSQL
Reported by: | max | Owned by: | Radek Bartoň |
---|---|---|---|
Priority: | normal | Component: | DiscussionPlugin |
Severity: | normal | Keywords: | |
Cc: | pipern | Trac Release: | 0.12 |
Description
Need to replace double quotes with odinary. I am using TracDiscussion 0.7-r8725
Here is the patch
--- api.py 2010-10-22 14:02:46.000000000 +0400 +++ api.py.orig 2010-10-22 14:02:32.000000000 +0400 @@ -1716,7 +1716,7 @@ values = item.values() sql_values = {'table' : table, 'fields' : ', '.join(fields), - 'values' : ', '.join(["'%s'" % to_unicode(value) for value in + 'values' : ', '.join(["\"%s\"" % to_unicode(value) for value in values])} sql = ("INSERT INTO %(table)s " "(%(fields)s) "
Attachments (0)
Change History (3)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Cc: | pipern added; anonymous removed |
---|
Ah, this was confusing until I realised that the patches are backwards :-)
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Probably fixed with r9458. Please test it if you can.
Note: See
TracTickets for help on using
tickets.
Opps. Not so quick. Some more places: