From 880ec0572fcc4bb25222575d81a4568449ccbcd1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 24 Apr 2006 02:09:27 +0000 Subject: [PATCH] fixed some bugs in result stuff --- dlls/mysqlx/basic_sql.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/mysqlx/basic_sql.cpp b/dlls/mysqlx/basic_sql.cpp index 25f6adb7..8d0c4e4c 100644 --- a/dlls/mysqlx/basic_sql.cpp +++ b/dlls/mysqlx/basic_sql.cpp @@ -317,7 +317,7 @@ static cell AMX_NATIVE_CALL SQL_NumResults(AMX *amx, cell *params) IResultSet *rs = qInfo->info.rs; - if (!rs || rs->IsDone()) + if (!rs) { MF_LogError(amx, AMX_ERR_NATIVE, "No result set in this query!"); return 0; @@ -337,7 +337,7 @@ static cell AMX_NATIVE_CALL SQL_NumColumns(AMX *amx, cell *params) IResultSet *rs = qInfo->info.rs; - if (!rs || rs->IsDone()) + if (!rs) { MF_LogError(amx, AMX_ERR_NATIVE, "No result set in this query!"); return 0; @@ -357,7 +357,7 @@ static cell AMX_NATIVE_CALL SQL_FieldNumToName(AMX *amx, cell *params) IResultSet *rs = qInfo->info.rs; - if (!rs || rs->IsDone()) + if (!rs) { MF_LogError(amx, AMX_ERR_NATIVE, "No result set in this query!"); return 0; @@ -388,7 +388,7 @@ static cell AMX_NATIVE_CALL SQL_FieldNameToNum(AMX *amx, cell *params) IResultSet *rs = qInfo->info.rs; - if (!rs || rs->IsDone()) + if (!rs) { MF_LogError(amx, AMX_ERR_NATIVE, "No result set in this query!"); return 0;