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
Forum Updated to NodeBB v4.3 + New Features

Does the lates mysql support parameter binding in IN parameters

Scheduled Pinned Locked Moved General and Desktop
mysql
1 Posts 1 Posters 353 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Maikoly
    wrote on 29 Jul 2015, 09:30 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

    1/1

    29 Jul 2015, 09:30

    • Login

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