Skip to content

Commit

Permalink
upstream changes in qsqlite v5.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sjemens committed Nov 25, 2020
1 parent 2729edb commit d7b1b90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qsqlcipher/qsql_sqlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,12 @@ bool QSQLiteResult::exec()
for (int i = 0, currentIndex = 0; i < values.size(); ++i) {
if (handledIndexes.contains(i))
continue;
const auto placeHolder = QString::fromUtf8(sqlite3_bind_parameter_name(d->stmt, currentIndex + 1));
const char *parameterName = sqlite3_bind_parameter_name(d->stmt, currentIndex + 1);
if (!parameterName) {
paramCountIsValid = false;
continue;
}
const auto placeHolder = QString::fromUtf8(parameterName);
const auto &indexes = d->indexes.value(placeHolder);
handledIndexes << indexes;
prunedValues << values.at(indexes.first());
Expand Down

0 comments on commit d7b1b90

Please sign in to comment.