[Qt-interest] qtsql simultaneous queries to db

franki franki at franki.eu.org
Thu Feb 11 17:14:41 CET 2010


Hi,

I need to run another query, during fetching result from QSqlQuery, something 
like this:

q=QSqlQuery;
q.exec("select somethig from table");
while(q.next()) {
	// need run another query to calculate some values
	//....
}

Is it possible with one connection to db? For example to create another 
QSqlQuery object and call q1.exec() and so one, during reading from previous 
QSqlQuery? 
Or do I need separate connections to run simultaneously queries?

I have qt4.5 and postgresql 8.1

Greetings
Marek



More information about the Qt-interest-old mailing list