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