Add comments
This commit is contained in:
parent
50ed4f7ce7
commit
4038144c38
|
@ -1097,14 +1097,24 @@ if (!defined("DRIVER")) {
|
||||||
return !preg_match("~scheme|sequence|type|view_trigger|materializedview" . (min_version(8) ? "" : "|descidx" . (min_version(5.1) ? "" : "|event|partitioning" . (min_version(5) ? "" : "|routine|trigger|view"))) . "~", $feature);
|
return !preg_match("~scheme|sequence|type|view_trigger|materializedview" . (min_version(8) ? "" : "|descidx" . (min_version(5.1) ? "" : "|event|partitioning" . (min_version(5) ? "" : "|routine|trigger|view"))) . "~", $feature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Kill a process
|
||||||
|
* @param int
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
function kill_process($val) {
|
function kill_process($val) {
|
||||||
return queries("KILL " . number($val));
|
return queries("KILL " . number($val));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Return query to get connection ID
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
function connection_id(){
|
function connection_id(){
|
||||||
return "SELECT CONNECTION_ID()";
|
return "SELECT CONNECTION_ID()";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Get maximum number of connections
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
function max_connections() {
|
function max_connections() {
|
||||||
global $connection;
|
global $connection;
|
||||||
return $connection->result("SELECT @@max_connections");
|
return $connection->result("SELECT @@max_connections");
|
||||||
|
|
Loading…
Reference in a new issue