File tree 1 file changed +3
-3
lines changed
java/src/main/java/com/genexus/db/driver
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public void onConnection(GXConnection con) throws SQLException
130
130
131
131
public java .util .Date serverDateTime (GXConnection con ) throws SQLException
132
132
{
133
- ResultSet rslt = con .getStatement ("_ServerDT_" , "SELECT NOW() " , false ).executeQuery ();
133
+ ResultSet rslt = con .getStatement ("_ServerDT_" , "SELECT CURRENT_TIMESTAMP FROM DUMMY " , false ).executeQuery ();
134
134
135
135
rslt .next ();
136
136
Date value = rslt .getTimestamp (1 );
@@ -141,7 +141,7 @@ public java.util.Date serverDateTime(GXConnection con) throws SQLException
141
141
142
142
public String serverVersion (GXConnection con ) throws SQLException
143
143
{
144
- ResultSet rslt = con .getStatement ("_ServerVERSION_" , "SELECT VERSION() " , false ).executeQuery ();
144
+ ResultSet rslt = con .getStatement ("_ServerVERSION_" , "SELECT VERSION FROM M_DATABASE " , false ).executeQuery ();
145
145
146
146
rslt .next ();
147
147
String value = rslt .getString (1 );
@@ -154,7 +154,7 @@ public String connectionPhysicalId(GXConnection con)
154
154
{
155
155
try
156
156
{
157
- ResultSet rslt = con .getStatement ("_ConnectionID_" , "SELECT CONNECTION_ID() " , false ).executeQuery ();
157
+ ResultSet rslt = con .getStatement ("_ConnectionID_" , "SELECT CURRENT_CONNECTION FROM DUMMY " , false ).executeQuery ();
158
158
159
159
rslt .next ();
160
160
String value = rslt .getString (1 );
You can’t perform that action at this time.
0 commit comments