1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 20:31:19 +02:00

postgresql : ERROR: function connection_id() does not exist

This commit is contained in:
soleuu
2017-01-16 17:03:02 +01:00
committed by Jakub Vrana
parent 6860478950
commit 86e26846a8
3 changed files with 9 additions and 1 deletions

View File

@@ -1215,7 +1215,7 @@ function slow_query($query) {
$db = $adminer->database();
$timeout = $adminer->queryTimeout();
if (support("kill") && is_object($connection2 = connect()) && ($db == "" || $connection2->select_db($db))) {
$kill = $connection2->result("SELECT CONNECTION_ID()"); // MySQL and MySQLi can use thread_id but it's not in PDO_MySQL
$kill = $connection2->result(connection_id()); // MySQL and MySQLi can use thread_id but it's not in PDO_MySQL
?>
<script type="text/javascript">
var timeout = setTimeout(function () {