Mimer SQL driver plugin: Fix messages

Amends 0efd8854c4.

Task-number: QTBUG-111219
Pick-to: 6.6
Change-Id: I8425c13a324562beb4a687ecdd0339a129fe190e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Fredrik Ålund <fredrik.alund@mimer.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
This commit is contained in:
Friedemann Kleint 2023-08-22 12:12:14 +02:00
parent 196a1acffc
commit 462904d46b

View File

@ -1281,7 +1281,7 @@ bool QMimerSQLResult::execBatch(bool arrayBind)
if (bindValueType(i) == QSql::Out || bindValueType(i) == QSql::InOut) {
setLastError(qMakeError(QCoreApplication::translate(
"QMimerSQLResult",
"Only input parameter can be used in batch operations"),
"Only input parameters can be used in batch operations"),
genericError, QSqlError::StatementError, nullptr));
d->execBatch = false;
return false;
@ -1295,6 +1295,7 @@ bool QMimerSQLResult::execBatch(bool arrayBind)
err = MimerAddBatch(d->statementhandle);
if (!MIMER_SUCCEEDED(err)) {
setLastError(qMakeError(
//: %1 is the batch number
QCoreApplication::translate("QMimerSQLResult", "Could not add batch %1")
.arg(i),
err, QSqlError::StatementError, d->drv_d_func()));