mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14: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) {
|
function rowDescription($table) {
|
||||||
// first varchar column
|
// first varchar column
|
||||||
foreach (fields($table) as $field) {
|
foreach (fields($table) as $field) {
|
||||||
if ($field["type"] == "varchar") {
|
if (ereg("varchar|character varying", $field["type"])) {
|
||||||
return idf_escape($field["field"]);
|
return idf_escape($field["field"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user