Results 1 to 4 of 4

Thread: submitAll() : database error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    38
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default submitAll() : database error

    I have a new problem , ie.

    this thread is in partial relation to the thread "update database" that i initially submitted.

    the full code i am using is attached.

    Whenever my program attempts to write to the database using submitAll() in the following piece of code:

    Qt Code:
    1. void submit()
    2. {
    3. model->database().transaction();
    4. if (model->submitAll()) {
    5. model->database().commit();
    6. } else {
    7. model->database().rollback();
    8. QMessageBox::warning(this, tr("Cached Table"),
    9. tr("The database reported an error: %1")
    10. .arg(model->lastError().text()));
    11. }
    To copy to clipboard, switch view to plain text mode 

    i get the following error:

    using unsupported buffer type: -842150451 (parameter: 2) QMYSQL3 : unable to bind value

    the QMYSQL3 bit is from the driver, using driverText(), everything before is from the database, using databaseText()

    i dont even know what the QMYSQL'3' is about, since i'm not using QT3 support classes. i am thinking the driver is QMYSQL.

    If anyone has ever dealt with this error before or have any ideas please let me know.

    thanks for your attention.
    Attached Files Attached Files

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  3. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31
  4. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  5. Am I the only one with "make" error ?
    By probine in forum Installation and Deployment
    Replies: 1
    Last Post: 13th February 2006, 12:54

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.