Skip to content

Commit

Permalink
add abiity to force dialect
Browse files Browse the repository at this point in the history
typically 'ORM', unless you know what you're doing/testing
  • Loading branch information
ar committed Sep 2, 2020
1 parent aabcd4b commit 070ef06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/minigl/src/main/java/org/jpos/gl/GLSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 070ef06

Please sign in to comment.