| @@ 253-266 (lines=14) @@ | ||
| 250 | * |
|
| 251 | * @return string |
|
| 252 | */ |
|
| 253 | public static function get_mysql_client_version(DB $dbConnection = null): string |
|
| 254 | { |
|
| 255 | static $_mysqli_client_version = null; |
|
| 256 | ||
| 257 | if ($dbConnection === null) { |
|
| 258 | $dbConnection = DB::getInstance(); |
|
| 259 | } |
|
| 260 | ||
| 261 | if ($_mysqli_client_version === null) { |
|
| 262 | $_mysqli_client_version = (string)\mysqli_get_client_version($dbConnection->getLink()); |
|
| 263 | } |
|
| 264 | ||
| 265 | return $_mysqli_client_version; |
|
| 266 | } |
|
| 267 | ||
| 268 | ||
| 269 | /** |
|
| @@ 276-289 (lines=14) @@ | ||
| 273 | * |
|
| 274 | * @return string |
|
| 275 | */ |
|
| 276 | public static function get_mysql_server_version(DB $dbConnection = null): string |
|
| 277 | { |
|
| 278 | static $_mysqli_server_version = null; |
|
| 279 | ||
| 280 | if ($dbConnection === null) { |
|
| 281 | $dbConnection = DB::getInstance(); |
|
| 282 | } |
|
| 283 | ||
| 284 | if ($_mysqli_server_version === null) { |
|
| 285 | $_mysqli_server_version = (string)\mysqli_get_server_version($dbConnection->getLink()); |
|
| 286 | } |
|
| 287 | ||
| 288 | return $_mysqli_server_version; |
|
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * Return all db-fields from a table. |
|