From de2727e467f817515df343e265de754c29e3de07 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Fri, 6 Dec 2024 15:35:06 -0300 Subject: [PATCH] Batch cursor was not been flushed at the end of a ws execution. Issue 202457 --- .../java/com/genexus/webpanels/GXWebProcedure.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java index 53f102ae3..a4fa7b531 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java @@ -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; @@ -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) { ; } + } + } } \ No newline at end of file