Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does the lates mysql support parameter binding in IN parameters
QtWS25 Last Chance

Does the lates mysql support parameter binding in IN parameters

Scheduled Pinned Locked Moved General and Desktop
mysql
1 Posts 1 Posters 351 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MaikolyM Offline
    MaikolyM Offline
    Maikoly
    wrote on last edited by
    #1

    query = new QSqlQuery();
    query->prepare("Call log(:usernam,:pass)");
    query->isSelect();
    //query->prepare("SELECT * FROM pumaro.users WHERE (userID = :usernam AND password1 = :pass)");
    query->bindValue(":usernam",QVariant(user),QSql::In);
    query->bindValue(":pass",QVariant(pass),QSql::In);
    query->exec();

    the commented section works fine. but the Call procedure(); returns Size -1. Whats wrong with the code.. Am I doing it Wrong. Any Assistance and advise shall be appreciated.

    MIC TEC SYSTEMS.Ke

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved