fixed a bug with using executeQuery and storedprocedure
@@ -1372,6 +1372,9 @@ public class SQLServerStatement implements ISQLServerStatement {
if (-1 == doneToken.getUpdateCount() && EXECUTE_BATCH != executeMethod)
return true;
+ if ( -1 != doneToken.getUpdateCount() && EXECUTE_QUERY == executeMethod )
+ return true;
+
// Otherwise, the update count is valid. Now determine whether we should
// return it as a result...
stmtDoneToken = doneToken;
