forked from leftypol/leftypol
Bypass broken mysql version check
This commit is contained in:
parent
1e690333a8
commit
03bf2be728
|
@ -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() {
|
||||
global $pdo;
|
||||
|
||||
$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]);
|
||||
// TODO delete all references of this function everywhere
|
||||
return 80504;
|
||||
}
|
||||
|
||||
function prepare($query) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user