forked from leftypol/leftypol
Bypass broken mysql version check
This commit is contained in:
parent
1d97b825d3
commit
2532d08331
1 changed files with 3 additions and 8 deletions
|
@ -99,15 +99,10 @@ function sql_open() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5.6.10 becomes 50610
|
// 5.6.10 becomes 50610 HACK: hardcoded to be above critical value 50803 due to laziness
|
||||||
function mysql_version() {
|
function mysql_version() {
|
||||||
global $pdo;
|
// TODO delete all references of this function everywhere
|
||||||
|
return 80504;
|
||||||
$version = $pdo->getAttribute(PDO::ATTR_SERVER_VERSION);
|
|
||||||
$v = explode('.', $version);
|
|
||||||
if (count($v) != 3)
|
|
||||||
return false;
|
|
||||||
return (int) sprintf("%02d%02d%02d", $v[0], $v[1], $v[2]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare($query) {
|
function prepare($query) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue