Fix SQL errors caused by sender insertion from multiple threads 126/head
authorMichael Marley <michael@michaelmarley.com>
Tue, 5 May 2015 01:27:14 +0000 (21:27 -0400)
committerMichael Marley <michael@michaelmarley.com>
Tue, 5 May 2015 01:34:36 +0000 (21:34 -0400)
At least on Qt5, the QSqlQuery.lastQuery() function, when used with
prepared queries, returns the EXECUTE statement and not the actual
query.  Qt then attempts to PREPARE this statement, which causes
a syntax error, aborting the transaction and dropping the message that
was to be inserted.  A better idea would be to execute the named
prepared query directly, which avoids the problem.


No differences found