fix sql query building (#220)
* fix sql query building * adding deps (#221) --------- Co-authored-by: jkennedyvz <65985482+jkennedyvz@users.noreply.github.com>main
parent
2558b4897b
commit
48768fbba4
|
@ -127,7 +127,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "Linux" ]; then
|
||||
sudo apt-get update > /dev/null && sudo apt-get install -qqq libxcb-keysyms1-dev libxkbcommon-dev > /dev/null
|
||||
sudo apt-get update > /dev/null && sudo apt-get install -qqq libxcb-keysyms1-dev libxkbcommon-dev libxkbcommon-x11-dev > /dev/null
|
||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||
choco install ninja --ignore-checksums
|
||||
fi
|
||||
|
|
|
@ -194,9 +194,8 @@ bool DatabaseConnection::setEvidenceTags(const QList<model::Tag> &newTags, qint6
|
|||
// sqlite indicates it's default is 100 passed parameter, but it can "handle thousands"
|
||||
if (!tagDataToInsert.empty()) {
|
||||
QVariantList args;
|
||||
baseQuery.append(QStringLiteral("(?, ?, ?"));
|
||||
baseQuery.append(QStringLiteral("(?,?,?)"));
|
||||
baseQuery.append(QString(", (?,?,?)").repeated(int(tagDataToInsert.size() - 1)));
|
||||
baseQuery.append(QStringLiteral(")"));
|
||||
for (const auto &item : tagDataToInsert) {
|
||||
args.append(item.evidenceID);
|
||||
args.append(item.tagID);
|
||||
|
|
Loading…
Reference in New Issue