From: <mrj...@us...> - 2008-01-09 17:09:09
|
Revision: 2422 http://tora.svn.sourceforge.net/tora/?rev=2422&view=rev Author: mrjohnson0 Date: 2008-01-09 09:09:01 -0800 (Wed, 09 Jan 2008) Log Message: ----------- fixes qsql queries getting executed twice Modified Paths: -------------- branches/tora-1.4/tora/src/toqsqlconnection.cpp Modified: branches/tora-1.4/tora/src/toqsqlconnection.cpp =================================================================== --- branches/tora-1.4/tora/src/toqsqlconnection.cpp 2008-01-09 09:53:15 UTC (rev 2421) +++ branches/tora-1.4/tora/src/toqsqlconnection.cpp 2008-01-09 17:09:01 UTC (rev 2422) @@ -1146,10 +1146,10 @@ QSqlQuery *createQuery(const QString &query) { QSqlQuery *ret; - ret = new QSqlQuery(query, Connection->Connection); + ret = new QSqlQuery(Connection->Connection); if (toQSqlProvider::OnlyForward) ret->setForwardOnly(true); - ret->exec(); + ret->exec(query); return ret; } public: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |