From d3284e759b4b72980990b7cb474a933cdc9f0d28 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Fri, 16 Oct 2020 19:35:38 -0300 Subject: [PATCH] The sentence that get the server version was not working when de PostgreSQL version is Beta Issue: 85993 --- java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java b/java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java index 594404b9c..65f0e85aa 100644 --- a/java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java +++ b/java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java @@ -175,7 +175,7 @@ public java.util.Date serverDateTime(GXConnection con) throws SQLException public String serverVersion(GXConnection con) throws SQLException { - ResultSet rslt = con.getStatement("_ServerVERSION_", "SHOW server_version", false).executeQuery(); + ResultSet rslt = con.getStatement("_ServerVERSION_", "select character_value from information_schema.sql_implementation_info where implementation_info_name = 'DBMS VERSION'", false).executeQuery(); rslt.next(); String value = rslt.getString(1);