Results 1 to 5 of 5

Thread: Qsqlquery fails to bindvalues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    Default Re: Qsqlquery fails to bindvalues

    Can you be so polite to tell me why i still can not bind the values? Do you have any great idea?
    Show the updated code. Arguments to "bindValue()" must exactly match the placeholder strings in "prepare()".

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    33
    Thanked 10 Times in 10 Posts

    Default Re: Qsqlquery fails to bindvalues

    Lol, change your if for this one and tell us the error:
    Qt Code:
    1. if (query.exec() == false)
    2. {
    3. qDebug () << query.lastError ().text ();
    4. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 18th July 2011, 12:12
  2. Replies: 1
    Last Post: 16th June 2011, 19:13
  3. Select statemen with bindvalues in Firebird 2 doesn't work
    By corrado1972 in forum Qt Programming
    Replies: 0
    Last Post: 1st September 2010, 15:59
  4. Replies: 14
    Last Post: 16th January 2009, 08:11
  5. Batch update fails with QSqlQuery
    By William Wilson in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2007, 15:36

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.