Skip to content

Commit 238aa3d

Browse files
authored
The sentence that get the server version was not working when de PostgreSQL version is Beta (#292)
Issue: 85993
1 parent 90439eb commit 238aa3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/main/java/com/genexus/db/driver/GXDBMSpostgresql.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public java.util.Date serverDateTime(GXConnection con) throws SQLException
175175

176176
public String serverVersion(GXConnection con) throws SQLException
177177
{
178-
ResultSet rslt = con.getStatement("_ServerVERSION_", "SHOW server_version", false).executeQuery();
178+
ResultSet rslt = con.getStatement("_ServerVERSION_", "select character_value from information_schema.sql_implementation_info where implementation_info_name = 'DBMS VERSION'", false).executeQuery();
179179

180180
rslt.next();
181181
String value = rslt.getString(1);

0 commit comments

Comments
 (0)