mirror of
https://github.com/vrana/adminer.git
synced 2025-09-11 23:00:47 +02:00
Define 'LIKE%%' operator in each driver
This commit is contained in:
@@ -427,6 +427,7 @@ if (isset($_GET["clickhouse"])) {
|
||||
'structured_types' => $structured_types,
|
||||
'unsigned' => array(),
|
||||
'operators' => array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL"),
|
||||
'operator_like' => "LIKE %%",
|
||||
'functions' => array(),
|
||||
'grouping' => array("avg", "count", "count distinct", "max", "min", "sum"),
|
||||
'edit_functions' => array(),
|
||||
|
@@ -265,10 +265,6 @@ if (isset($_GET["elastic"])) {
|
||||
|
||||
return $this->_conn->affected_rows;
|
||||
}
|
||||
|
||||
function convertOperator($operator) {
|
||||
return $operator == "LIKE %%" ? "should" : $operator;
|
||||
}
|
||||
}
|
||||
|
||||
function connect() {
|
||||
@@ -581,6 +577,7 @@ if (isset($_GET["elastic"])) {
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'operator_like' => "should",
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(array("json")),
|
||||
|
@@ -267,10 +267,6 @@ if (isset($_GET["elastic5"])) {
|
||||
|
||||
return $this->_conn->affected_rows;
|
||||
}
|
||||
|
||||
function convertOperator($operator) {
|
||||
return $operator == "LIKE %%" ? "should" : $operator;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -561,6 +557,7 @@ if (isset($_GET["elastic5"])) {
|
||||
'possible_drivers' => array("json + allow_url_fopen"),
|
||||
'jush' => "elastic",
|
||||
'operators' => array("=", "must", "should", "must_not"),
|
||||
'operator_like' => "should",
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(array("json")),
|
||||
|
@@ -20,7 +20,7 @@ if (isset($_GET["firebird"])) {
|
||||
;
|
||||
|
||||
function connect($server, $username, $password) {
|
||||
$this->_link = ibase_connect($server, $username, $password);
|
||||
$this->_link = ibase_connect($server, $username, $password);
|
||||
if ($this->_link) {
|
||||
$url_parts = explode(':', $server);
|
||||
$this->service_link = ibase_service_attach($url_parts[0], $username, $password);
|
||||
@@ -109,9 +109,9 @@ if (isset($_GET["firebird"])) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Min_Driver extends Min_SQL {
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ if (isset($_GET["firebird"])) {
|
||||
}
|
||||
|
||||
function limit($query, $where, $limit, $offset = 0, $separator = " ") {
|
||||
$return = '';
|
||||
$return = '';
|
||||
$return .= ($limit !== null ? $separator . "FIRST $limit" . ($offset ? " SKIP $offset" : "") : "");
|
||||
$return .= " $query$where";
|
||||
return $return;
|
||||
@@ -171,7 +171,7 @@ if (isset($_GET["firebird"])) {
|
||||
while ($row = ibase_fetch_assoc($result)) {
|
||||
$return[$row['RDB$RELATION_NAME']] = 'table';
|
||||
}
|
||||
ksort($return);
|
||||
ksort($return);
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -316,6 +316,7 @@ ORDER BY RDB$INDEX_SEGMENTS.RDB$FIELD_POSITION';
|
||||
'possible_drivers' => array("interbase"),
|
||||
'jush' => "firebird",
|
||||
'operators' => array("="),
|
||||
'operator_like' => "LIKE %%", // TODO: LIKE operator is not listed in operators.
|
||||
'functions' => array(),
|
||||
'grouping' => array(),
|
||||
'edit_functions' => array(),
|
||||
|
@@ -514,6 +514,7 @@ if (isset($_GET["simpledb"])) {
|
||||
'possible_drivers' => array("SimpleXML + allow_url_fopen"),
|
||||
'jush' => "simpledb",
|
||||
'operators' => array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL"),
|
||||
'operator_like' => "LIKE %%",
|
||||
'functions' => array(),
|
||||
'grouping' => array("count"),
|
||||
'edit_functions' => array(array("json")),
|
||||
|
Reference in New Issue
Block a user