Skip to content

Commit 7e83cdd

Browse files
committed
fixed a bug with using executeQuery and storedprocedure
1 parent ae2616d commit 7e83cdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerStatement.java

+3
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,9 @@ boolean onDone(TDSReader tdsReader) throws SQLServerException {
13711371
// status (Statement.SUCCESS_NO_INFO)
13721372
if (-1 == doneToken.getUpdateCount() && EXECUTE_BATCH != executeMethod)
13731373
return true;
1374+
1375+
if ( -1 != doneToken.getUpdateCount() && EXECUTE_QUERY == executeMethod )
1376+
return true;
13741377

13751378
// Otherwise, the update count is valid. Now determine whether we should
13761379
// return it as a result...

0 commit comments

Comments
 (0)