Git commit 02dd7b6c47fce53385163d8d00311bbe8b44c26e by Adam Pigg. Committed on 12/09/2018 at 20:10. Pushed by piggz into branch '3.1'. Move asking for paramters to open() instead of getSchema() M +7 -7 src/plugins/reports/KexiDBReportDataSource.cpp https://commits.kde.org/kexi/02dd7b6c47fce53385163d8d00311bbe8b44c26e diff --git a/src/plugins/reports/KexiDBReportDataSource.cpp b/src/plugins/r= eports/KexiDBReportDataSource.cpp index 0ca76bd30..6d3d824a1 100644 --- a/src/plugins/reports/KexiDBReportDataSource.cpp +++ b/src/plugins/reports/KexiDBReportDataSource.cpp @@ -125,6 +125,13 @@ bool KexiDBReportDataSource::open() { //qDebug() << "Opening cursor.." // << KDbConnectionAndQuerySchema(d->tempData->connect= ion(), *d->copySchema); + bool ok; + KexiUtils::WaitCursorRemover remover; + d->currentParams =3D KexiQueryParameters::getParameters(0, d->= tempData->connection(), d->originalSchema, &ok); + if (!ok) { + return false; + } + d->cursor =3D d->tempData->connection()->executeQuery(d->copyS= chema, d->currentParams, KDbCursor::Option::Buffered); } = @@ -174,13 +181,6 @@ bool KexiDBReportDataSource::getSchema(const QString& = pluginId) qDebug() << d->objectName << "is a query.."; qDebug() << KDbConnectionAndQuerySchema(d->tempData->connectio= n(), *query); d->originalSchema =3D new KDbQuerySchema(*query, d->tempData->= connection()); - - bool ok; - KexiUtils::WaitCursorRemover remover; - d->currentParams =3D KexiQueryParameters::getParameters(0, d->= tempData->connection(), d->originalSchema, &ok); - if (!ok) { - return false; - } } = if (d->originalSchema) {