Move is_c_style_escapes to Min_Driver

This commit is contained in:
Jakub Vrana
2025-02-25 07:26:08 +01:00
parent a1235f68ff
commit 4f0da70733
7 changed files with 30 additions and 35 deletions

View File

@@ -249,6 +249,14 @@ if (isset($_GET["pgsql"])) {
}
}
function hasCStyleEscapes() {
static $c_style;
if ($c_style === null) {
$c_style = ($this->_conn->result("SHOW standard_conforming_strings") == "off");
}
return $c_style;
}
}
@@ -879,15 +887,6 @@ ORDER BY connamespace, conname"
return get_key_vals("SHOW ALL");
}
function is_c_style_escapes() {
global $connection;
static $c_style;
if ($c_style === null) {
$c_style = ($connection->result("SHOW standard_conforming_strings") == "off");
}
return $c_style;
}
function process_list() {
return get_rows("SELECT * FROM pg_stat_activity ORDER BY " . (min_version(9.2) ? "pid" : "procpid"));
}