mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Move unsigned to Driver
This commit is contained in:
@@ -710,7 +710,6 @@ WHERE sys1.xtype = 'TR' AND sys2.name = " . q($table)) as $row
|
||||
return array(
|
||||
'possible_drivers' => array("SQLSRV", "PDO_SQLSRV", "PDO_DBLIB"),
|
||||
'jush' => "mssql",
|
||||
'unsigned' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -281,6 +281,7 @@ if (!defined("DRIVER")) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
var $unsigned = array("unsigned", "zerofill", "unsigned zerofill");
|
||||
var $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "REGEXP", "IN", "FIND_IN_SET", "IS NULL", "NOT LIKE", "NOT REGEXP", "NOT IN", "IS NOT NULL", "SQL");
|
||||
var $functions = array("char_length", "date", "from_unixtime", "lower", "round", "floor", "ceil", "sec_to_time", "time_to_sec", "upper");
|
||||
var $grouping = array("avg", "count", "count distinct", "group_concat", "max", "min", "sum");
|
||||
@@ -1197,13 +1198,12 @@ if (!defined("DRIVER")) {
|
||||
}
|
||||
|
||||
/** Get driver config
|
||||
* @return array ['possible_drivers' => , 'jush' => , 'unsigned' => ]
|
||||
* @return array ['possible_drivers' => , 'jush' => ]
|
||||
*/
|
||||
function driver_config() {
|
||||
return array(
|
||||
'possible_drivers' => array("MySQLi", "MySQL", "PDO_MySQL"),
|
||||
'jush' => "sql", ///< @var string JUSH identifier
|
||||
'unsigned' => array("unsigned", "zerofill", "unsigned zerofill"), ///< @var array number variants
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -549,7 +549,6 @@ ORDER BY PROCESS
|
||||
return array(
|
||||
'possible_drivers' => array("OCI8", "PDO_OCI"),
|
||||
'jush' => "oracle",
|
||||
'unsigned' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -940,7 +940,6 @@ AND typelem = 0"
|
||||
return array(
|
||||
'possible_drivers' => array("PgSQL", "PDO_PgSQL"),
|
||||
'jush' => "pgsql",
|
||||
'unsigned' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -742,7 +742,6 @@ if (isset($_GET["sqlite"])) {
|
||||
return array(
|
||||
'possible_drivers' => array("SQLite3", "PDO_SQLite"),
|
||||
'jush' => "sqlite",
|
||||
'unsigned' => array(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user