Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Use of SQLITE_LIMIT_COMPOUND_SELECT

Use of SQLITE_LIMIT_COMPOUND_SELECT

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.3k 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.
  • B Offline
    B Offline
    boumacmilan
    wrote on last edited by
    #1

    Hi Everyone
    I develop an application in Qt/QML for Symbian mobile I have SEVERAL insert with a single insert request (I work with a BD SQLITE) the request looks like
    @INSERT INTO 'tablename' SELECT 'data1' AS 'column1', 'data2' AS 'column2'
    UNION SELECT 'data3', 'data4'
    UNION SELECT 'data5', 'data6'
    UNION SELECT 'data7', 'data8'@

    my problem is that I insert a lot of line (1500) and I get the following error: too many terms in compound SELECT
    I found it necessary to specify the attribute SQLITE_LIMIT_COMPOUND_SELECT
    but I do not know how or where
    Thank you in advance for your help

    1 Reply Last reply
    0
    • T Offline
      T Offline
      trollixx
      wrote on last edited by
      #2

      Try "QSqlDatabase::setConnectOptions()":http://qt-project.org/doc/qt-4.8/qsqldatabase.html#setConnectOptions.

      Oleg

      1 Reply Last reply
      0
      • B Offline
        B Offline
        boumacmilan
        wrote on last edited by
        #3

        Thanks trollixx for your answer
        i aleardy see this methode it gives only this option
        QSQLITE_BUSY_TIMEOUT
        QSQLITE_OPEN_READONLY
        QSQLITE_ENABLE_SHARED_CACHE
        i didn't found the SQLITE_LIMIT_COMPOUND_SELECT

        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