| @@ 157-170 (lines=14) @@ | ||
| 154 | * |
|
| 155 | * @return string |
|
| 156 | */ |
|
| 157 | public static function get_mysql_client_version(DB $dbConnection = null) |
|
| 158 | { |
|
| 159 | static $_mysqli_client_version = null; |
|
| 160 | ||
| 161 | if ($dbConnection === null) { |
|
| 162 | $dbConnection = DB::getInstance(); |
|
| 163 | } |
|
| 164 | ||
| 165 | if ($_mysqli_client_version === null) { |
|
| 166 | $_mysqli_client_version = \mysqli_get_client_version($dbConnection->getLink()); |
|
| 167 | } |
|
| 168 | ||
| 169 | return $_mysqli_client_version; |
|
| 170 | } |
|
| 171 | ||
| 172 | ||
| 173 | /** |
|
| @@ 180-193 (lines=14) @@ | ||
| 177 | * |
|
| 178 | * @return string |
|
| 179 | */ |
|
| 180 | public static function get_mysql_server_version(DB $dbConnection = null) |
|
| 181 | { |
|
| 182 | static $_mysqli_server_version = null; |
|
| 183 | ||
| 184 | if ($dbConnection === null) { |
|
| 185 | $dbConnection = DB::getInstance(); |
|
| 186 | } |
|
| 187 | ||
| 188 | if ($_mysqli_server_version === null) { |
|
| 189 | $_mysqli_server_version = \mysqli_get_server_version($dbConnection->getLink()); |
|
| 190 | } |
|
| 191 | ||
| 192 | return $_mysqli_server_version; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Return all db-fields from a table. |
|