mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
PostgreSQL uses 'character varying' (thanks to Lubor Bilek)
This commit is contained in:
@@ -123,7 +123,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
function rowDescription($table) {
|
||||
// first varchar column
|
||||
foreach (fields($table) as $field) {
|
||||
if ($field["type"] == "varchar") {
|
||||
if (ereg("varchar|character varying", $field["type"])) {
|
||||
return idf_escape($field["field"]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user