Skip to content

Commit d7885eb

Browse files
committed
Avoid execute savepoints sentences in PostgreSQL when GENERATE_SAVEPOINT_SQL=N is set in config.gx
Issue: 104312
1 parent edfc1e2 commit d7885eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/src/main/java/com/genexus/db/DataStoreProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ private void setParameters(int cursorIdx, Object[] parms, Cursor cursor,
438438

439439
private void executeSavePointOperation(String operation, Cursor cursor)
440440
{
441-
if (getDataSource().dbms.getId() == GXDBMS.DBMS_POSTGRESQL && GXutil.dbmsVersion( context, remoteHandle, getDataSource().name) > 7 && cursor instanceof ForEachCursor && cursor.isCurrentOf())
441+
if (getDataSource().dbms.getId() == GXDBMS.DBMS_POSTGRESQL && GXutil.dbmsVersion( context, remoteHandle, getDataSource().name) > 7
442+
&& cursor instanceof ForEachCursor && cursor.isCurrentOf()
443+
&& context.getPreferences().getProperty("GenerateSavePoints", "1").equals("1"))
442444
{
443445
try
444446
{

0 commit comments

Comments
 (0)