Results 1 to 3 of 3

Thread: mySql Result Datatype issues!!!

  1. #1
    Join Date
    Mar 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default mySql Result Datatype issues!!!

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: mySql Result Datatype issues!!!

    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).

  3. The following user says thank you to wysota for this useful post:

    bera82 (21st March 2006)

  4. #3
    Join Date
    Mar 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Smile Re: mySql Result Datatype issues!!!

    Thank you very much, I ll get it working now

Similar Threads

  1. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  2. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  3. Replies: 1
    Last Post: 21st March 2006, 12:54
  4. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 22:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.