From 070ef06fd2f91ba71d88145d3cfe26dc574fcbb2 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Tue, 1 Sep 2020 22:36:31 -0300 Subject: [PATCH] add abiity to force dialect typically 'ORM', unless you know what you're doing/testing --- modules/minigl/src/main/java/org/jpos/gl/GLSession.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/minigl/src/main/java/org/jpos/gl/GLSession.java b/modules/minigl/src/main/java/org/jpos/gl/GLSession.java index 0835907c48..3d1cb41cb7 100644 --- a/modules/minigl/src/main/java/org/jpos/gl/GLSession.java +++ b/modules/minigl/src/main/java/org/jpos/gl/GLSession.java @@ -1964,7 +1964,10 @@ private void setDialect() { else if (ds.contains("postgres")) nativeDialect = NativeDialect.POSTGRESQL; } - private enum NativeDialect { + public void forceDialect (NativeDialect dialect) { + nativeDialect = dialect; + } + public enum NativeDialect { MYSQL, POSTGRESQL, ORM } }