Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions java/src/main/java/com/genexus/db/driver/GXDBMShana.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void onConnection(GXConnection con) throws SQLException

public java.util.Date serverDateTime(GXConnection con) throws SQLException
{
ResultSet rslt = con.getStatement("_ServerDT_", "SELECT NOW()", false).executeQuery();
ResultSet rslt = con.getStatement("_ServerDT_", "SELECT CURRENT_TIMESTAMP FROM DUMMY", false).executeQuery();

rslt.next();
Date value = rslt.getTimestamp(1);
Expand All @@ -141,7 +141,7 @@ public java.util.Date serverDateTime(GXConnection con) throws SQLException

public String serverVersion(GXConnection con) throws SQLException
{
ResultSet rslt = con.getStatement("_ServerVERSION_", "SELECT VERSION()", false).executeQuery();
ResultSet rslt = con.getStatement("_ServerVERSION_", "SELECT VERSION FROM M_DATABASE", false).executeQuery();

rslt.next();
String value = rslt.getString(1);
Expand All @@ -154,7 +154,7 @@ public String connectionPhysicalId(GXConnection con)
{
try
{
ResultSet rslt = con.getStatement("_ConnectionID_", "SELECT CONNECTION_ID()", false).executeQuery();
ResultSet rslt = con.getStatement("_ConnectionID_", "SELECT CURRENT_CONNECTION FROM DUMMY", false).executeQuery();

rslt.next();
String value = rslt.getString(1);
Expand Down