Results 1 to 2 of 2

Thread: [SQLite] How to set a savepoint

  1. #1
    Join Date
    Jan 2011
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default [SQLite] How to set a savepoint

    Hi,

    I try to set a savepoint in this way :
    Qt Code:
    1. if ( ! db.transaction() )
    2. return false;
    3.  
    4. //QSqlQuery query( "savepoint sp1", db );
    5. QSqlQuery query( "savepoint sp1;", db );
    6. if ( ! query.exec() )
    7. std::cerr << query.lastError().text() << '\n';
    To copy to clipboard, switch view to plain text mode 
    And i've the error : No query Unable to fetch row
    I no other idea on how to do it (except to use directly the sqlite API)

    Do you have a idea on how to do it with the Qt API ?

    Thx.

  2. #2
    Join Date
    Jul 2010
    Location
    Indonesia
    Posts
    83
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: [SQLite] How to set a savepoint

    Check your sqlite driver version. SAVEPOINT first appeared in SQLITE V 3.6.8.

Similar Threads

  1. Qt SQLite
    By metRo_ in forum Qt Programming
    Replies: 3
    Last Post: 12th December 2010, 10:35
  2. [Qt][SQLite] Two problems with SQLite.
    By Xandareva in forum Newbie
    Replies: 6
    Last Post: 6th April 2010, 23:06
  3. Sqlite DB
    By Tara in forum Qt Programming
    Replies: 6
    Last Post: 12th May 2008, 19:57
  4. SQLite
    By cyberboy in forum Installation and Deployment
    Replies: 1
    Last Post: 15th April 2008, 19:46
  5. sqlite
    By spx2 in forum Qt Programming
    Replies: 9
    Last Post: 19th December 2006, 22:01

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.