mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 15:20:46 +02:00
fix isSelect ( QSqlQuery::isSelect() does not work as expected )
This commit is contained in:
parent
f1d78192f7
commit
dfe6d3bb03
@ -93,11 +93,9 @@ QSqlQuery DatabaseManager::executeQuery(QSqlQuery &query, const QString &sqlText
|
|||||||
bool isSelect = false;
|
bool isSelect = false;
|
||||||
if ( sqlText.isEmpty()) {
|
if ( sqlText.isEmpty()) {
|
||||||
sqlStatement = getLastQuery(query);
|
sqlStatement = getLastQuery(query);
|
||||||
isSelect = query.isSelect();
|
}
|
||||||
} else {
|
if (sqlText.startsWith("SELECT", Qt::CaseInsensitive)) {
|
||||||
if (sqlText.startsWith("SELECT", Qt::CaseInsensitive)) {
|
isSelect = true;
|
||||||
isSelect = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mDryMode) {
|
if (mDryMode) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user