Comment 2 for bug 31650

Revision history for this message
Björn Tillenius (bjornt) wrote :

I'm not sure exactly what went wrong here, I can see that the message got inserted into the db correctly, and that the message got linked to the bug properly.

The last statement, which failed, was practically self.messages[0], which correctly generated the SQL query:

  SELECT message FROM BugMessage WHERE bug = 31648

By looking at the generated SQL statements, this should have returned the id of the newly created message, and self.messages would be a list containing that message, but something failed. Either the query above didn't return any rows, or something went wrong when sqlobject tried to get the message from the cache, when creating the list of messages.