Add support for MySQL 8 (fixes #232)

This commit is contained in:
Fedor A. Fetisov 2018-08-09 16:04:31 +03:00
parent 647bd84995
commit 4f03a73f9a
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ requestcallback:
fields:
callbackid: "int NOT NULL auto_increment PRIMARY KEY"
token: "varchar(64) NOT NULL DEFAULT ''"
function: "varchar(64) NOT NULL"
func: "varchar(64) NOT NULL"
arguments: "varchar(1024)"
indexes:
token: [token]

View File

@ -485,7 +485,7 @@ abstract class AbstractProcessor
$db = Database::getInstance();
$query = "INSERT INTO {requestcallback} ( "
. "token, function, arguments "
. "token, func, arguments "
. ") VALUES ( "
. ":token, :function, :arguments"
. ")";
@ -526,7 +526,7 @@ abstract class AbstractProcessor
}
return array(
'function' => $callback['function'],
'function' => $callback['func'],
'arguments' => unserialize($callback['arguments']),
);
}