File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,13 @@ function test_db_connection()
134
134
$ retval = [];
135
135
try {
136
136
$ entityManager = Factory::getNewEntityManager ();
137
- $ entityManager ->getConnection ()->connect ();
137
+ // Get the database connection.
138
+ $ connection = $ entityManager ->getConnection ();
139
+ // Try a simple select statement - attempt to bypass any caching
140
+ // by requesting the current timestamp to the nearest millisecond.
141
+ // This is done by the 3, which represents the number of decimal
142
+ // to display.
143
+ $ connection ->fetchOne ('SELECT CURRENT_TIMESTAMP(3) ' );
138
144
$ retval ["status " ] = OK ;
139
145
$ retval ["message " ] = OKMSG ;
140
146
} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change 4
4
<!-- <img src="img/Logo-1.6.png" class="logo_image" height="39" style="vertical-align: middle;"/>-->
5
5
< h3 class ="Logo_Text Small_Bottom_Margin Standard_Padding "
6
6
style ="vertical-align: middle; margin-left: 0.2em; ">
7
- GOCDB 5.12.1
7
+ GOCDB 5.12.2-rc. 1
8
8
</ h3 >
9
9
10
10
</ a >
You can’t perform that action at this time.
0 commit comments