Results 1 to 3 of 3

Thread: QtSql: Maximum number of PREPARE statements

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QtSql: Maximum number of PREPARE statements

    Hi
    I am heavily using QSqlQuery::prepare() in my application and since I have to process a lot of data, mysql throws an error: ERROR 1461 (42000): Can't create more than max_prepared_stmt_count statements (current value: 16382)
    Can I somehow free these prepared statements? It is nice to use them, because I don't need to care how to escape variables when switching from MySQL to SQLite for example.
    I know I could optimize my code to do less queries, but this would make it less readable? Do you have any ideas?
    Last edited by kayssun; 24th April 2010 at 22:28. Reason: disabled smileys

Similar Threads

  1. QtSql: execBatch() with SELECT statements
    By herrmarder in forum Qt Programming
    Replies: 2
    Last Post: 28th January 2010, 13:43
  2. Maximum number of controls in QWidget
    By soumyadeep_pan in forum Qt Programming
    Replies: 4
    Last Post: 7th February 2009, 04:53
  3. Oracle 11g1 prepare for Qt4.4
    By landonmkelsey in forum Installation and Deployment
    Replies: 0
    Last Post: 3rd December 2008, 20:26
  4. Maximum number of characters in width
    By ralphmerridew in forum Qt Programming
    Replies: 3
    Last Post: 27th May 2008, 01:55
  5. reading fprintf statements from console in qt
    By KrishnaKishan in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2007, 10:00

Tags for this Thread

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.