Number of query bindValues can't be more than 1000
-
In this case, if your driver supports it (
db->driver()->hasFeature(QSqlDriver::BatchOperations)==true
), you can use batch exec -
Then I'd just execute multiple queries. The limit at 1000 is a limit of SQLite. the database treats multi line insert as compound select, the limit is 500 times 2 arguments per line = 1000
Nothing to do with Qt
-
Then I'd just execute multiple queries. The limit at 1000 is a limit of SQLite. the database treats multi line insert as compound select, the limit is 500 times 2 arguments per line = 1000
Nothing to do with Qt
-
@VRonin This may not be a limitation of sqlite because I can execute this query with sqlitebrowser and query.exec() with raw query but not with bindValue
@uralbash said in Number of query bindValues can't be more than 1000:
I can execute this query with [...] raw query but not with bindValue
You can build the raw query by hand anyway using QSqlDriver::formatValue to prevent injection