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