Skip to content

Commit

Permalink
Batch cursor was not been flushed at the end of a ws execution. (#920)
Browse files Browse the repository at this point in the history
Issue 202457
  • Loading branch information
iroqueta authored Jan 13, 2025
1 parent be10e1f commit 99e013a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXWebProcedure.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.PrintWriter;

import com.genexus.Application;
import com.genexus.GXObjectBase;
import com.genexus.mock.GXMockProvider;
import com.genexus.servlet.IServletContext;
Expand Down Expand Up @@ -122,4 +123,15 @@ protected void mockExecute() {
}
privateExecute( );
}

protected boolean batchCursorHolder(){
return false;
}
protected void exitApp() {
if (batchCursorHolder()) {
try {
Application.getConnectionManager().flushBuffers(remoteHandle, this);
} catch (Exception exception) { ; }
}
}
}

0 comments on commit 99e013a

Please sign in to comment.