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);