Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Save failed: "Parameter count mismatch"
Forum Updated to NodeBB v4.3 + New Features

Save failed: "Parameter count mismatch"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 158 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.
  • A Offline
    A Offline
    ADgai
    wrote on last edited by
    #1

    QString createTableQuery = "CREATE TABLE IF NOT EXISTS" + tableName + " ("
    "errortype TEXT, "
    "errordescription TEXT, "
    "errorlocation TEXT"
    ")"; query.prepare("INSERT INTO " + tableName + " ("
    "errortype,"
    "errordescription,"
    "errorlocation"
    ") VALUES (?,?,?)");
    query.bindValue(0, error_type);
    query.bindValue(1, error_description);
    query.bindValue(2, error_location);

    Ronel_qtmasterR 1 Reply Last reply
    0
    • A ADgai

      QString createTableQuery = "CREATE TABLE IF NOT EXISTS" + tableName + " ("
      "errortype TEXT, "
      "errordescription TEXT, "
      "errorlocation TEXT"
      ")"; query.prepare("INSERT INTO " + tableName + " ("
      "errortype,"
      "errordescription,"
      "errorlocation"
      ") VALUES (?,?,?)");
      query.bindValue(0, error_type);
      query.bindValue(1, error_description);
      query.bindValue(2, error_location);

      Ronel_qtmasterR Offline
      Ronel_qtmasterR Offline
      Ronel_qtmaster
      wrote on last edited by Ronel_qtmaster
      #2

      @ADgai Where do you execute your first query(createTableQuery) to check if it is working?
      have you created a database before creating all these queries?

      1 Reply Last reply
      1
      • A ADgai has marked this topic as solved on

      • Login

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