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. [Solved] error while performing query multiple "insert or replace" with sqlite and Qt 4.8
QtWS25 Last Chance

[Solved] error while performing query multiple "insert or replace" with sqlite and Qt 4.8

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    diego
    wrote on last edited by
    #1

    Hi, the query work in sqlitestudio 2.1.4

    lastQuery output
    @"INSERT OR REPLACE INTO settings (field, value) VALUES ('modo','0'), ('server_ip_address','192.168.0.3'), ('server_login','teste'), ('server_passwd','123456'), ('server_folder','pessoal')"@

    lastError output
    @QSqlError(-1, "Unable to fetch row", "No query")@

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Could you post the code where you use this query ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        diego
        wrote on last edited by
        #3

        find the problem.
        the version of sqlite is 3.7.7 and need 3.7.11 to multiple insert
        thanks.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Great you found out and thanks for sharing !

          Don't forget to update the thread title prepending solved so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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