PostgreSQL uses 'character varying' (thanks to Lubor Bilek)

This commit is contained in:
Jakub Vrana 2011-05-20 17:52:32 +02:00
parent e3c4324e49
commit 20a65465c6

View file

@ -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"]);
}
}