Ticket #6776: pg_str_cast.patch
| File pg_str_cast.patch, 1.2 KB (added by jhampton, 4 years ago) |
|---|
-
model.py
297 297 "SELECT time,author,'comment',null,description,0 " 298 298 "FROM attachment WHERE id=%s AND time=%s " 299 299 "ORDER BY time", 300 (self.id, when_ts, str(self.id), when_ts, s elf.id, when_ts))300 (self.id, when_ts, str(self.id), when_ts, str(self.id), when_ts)) 301 301 else: 302 302 cursor.execute("SELECT time,author,field,oldvalue,newvalue,1 " 303 303 "FROM ticket_change WHERE ticket=%s " … … 307 307 "UNION " 308 308 "SELECT time,author,'comment',null,description,0 " 309 309 "FROM attachment WHERE id=%s " 310 "ORDER BY time", (self.id, str(self.id), s elf.id))310 "ORDER BY time", (self.id, str(self.id), str(self.id))) 311 311 log = [] 312 312 for t, author, field, oldvalue, newvalue, permanent in cursor: 313 313 log.append((datetime.fromtimestamp(int(t), utc), author, field,
