PDA

View Full Version : mySql Result Datatype issues!!!



bera82
21st March 2006, 08:21
hi,
I am using Qt3.3 with a mysql plugin.
I am retrieving results from database and storing it in a result object.
I have an iterator datatype of mysql to traverse the recordset.
after one complete traversal when my main code tries to access this recordset again.. It returns a NULL!!!
Querying is succesful everytime.. but result of query is stored only for one iteration!!
help pls..
Thanks,
Bera

wysota
21st March 2006, 10:56
That's the nature of MySQL (maybe other SQLs too). If you want to browse the set here and there, you have to store it somewhere first (in a vector or a list).

bera82
21st March 2006, 11:26
Thank you very much, I ll get it working now :)