| @@ 193-206 (lines=14) @@ | ||
| 190 | * |
|
| 191 | * @return string |
|
| 192 | */ |
|
| 193 | public static function get_mysql_client_version(DB $dbConnection = null) |
|
| 194 | { |
|
| 195 | static $_mysqli_client_version = null; |
|
| 196 | ||
| 197 | if ($dbConnection === null) { |
|
| 198 | $dbConnection = DB::getInstance(); |
|
| 199 | } |
|
| 200 | ||
| 201 | if ($_mysqli_client_version === null) { |
|
| 202 | $_mysqli_client_version = \mysqli_get_client_version($dbConnection->getLink()); |
|
| 203 | } |
|
| 204 | ||
| 205 | return $_mysqli_client_version; |
|
| 206 | } |
|
| 207 | ||
| 208 | ||
| 209 | /** |
|
| @@ 216-229 (lines=14) @@ | ||
| 213 | * |
|
| 214 | * @return string |
|
| 215 | */ |
|
| 216 | public static function get_mysql_server_version(DB $dbConnection = null) |
|
| 217 | { |
|
| 218 | static $_mysqli_server_version = null; |
|
| 219 | ||
| 220 | if ($dbConnection === null) { |
|
| 221 | $dbConnection = DB::getInstance(); |
|
| 222 | } |
|
| 223 | ||
| 224 | if ($_mysqli_server_version === null) { |
|
| 225 | $_mysqli_server_version = \mysqli_get_server_version($dbConnection->getLink()); |
|
| 226 | } |
|
| 227 | ||
| 228 | return $_mysqli_server_version; |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * Return all db-fields from a table. |
|