Results 1 to 9 of 9

Thread: QSqlQuery::exec: database not open

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QSqlQuery::exec: database not open

    Found answer...

    QSqlQuery::executedQuery()--->returning first successfully executed query.(correct me if i am wrong)
    If i use QSqlQuery::clear() after exicuting each QSqlQuery::exec() then only its giving last suuceessfully exicuted query.

    Why this is happening.. documents in qt were telling some thing other than realty..

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 86 Times in 81 Posts

    Default Re: QSqlQuery::exec: database not open

    Quote Originally Posted by newtowindows View Post
    Found answer...
    Why this is happening.. documents in qt were telling some thing other than realty..
    It's Can be a Bug?
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Oct 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QSqlQuery::exec: database not open

    Maybe its a bug. Any expert's views are helpfull for us

Similar Threads

  1. [QSqlQuery] Problem with not open database
    By xkazielx in forum Newbie
    Replies: 11
    Last Post: 1st September 2013, 20:32
  2. Threads and database connection
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 7th August 2013, 08:30
  3. Replies: 4
    Last Post: 23rd November 2010, 17:15
  4. Multiple database connections
    By cyberboy in forum Qt Programming
    Replies: 3
    Last Post: 30th March 2008, 16:56
  5. Best way to open database
    By estanisgeyer in forum Qt Programming
    Replies: 2
    Last Post: 8th February 2008, 05:18

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
  •  
Qt is a trademark of The Qt Company.