forked from ondra/server-sdk
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;
|
||||
if ( sqlText.isEmpty()) {
|
||||
sqlStatement = getLastQuery(query);
|
||||
isSelect = query.isSelect();
|
||||
} else {
|
||||
if (sqlText.startsWith("SELECT", Qt::CaseInsensitive)) {
|
||||
isSelect = true;
|
||||
}
|
||||
}
|
||||
if (sqlText.startsWith("SELECT", Qt::CaseInsensitive)) {
|
||||
isSelect = true;
|
||||
}
|
||||
|
||||
if (mDryMode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user