Change CDB_ColumnNames to order columns names as in table

This commit is contained in:
Javier Goizueta 2016-01-11 15:28:27 +01:00
parent fd7a8cff71
commit ef7e613d41

View File

@ -8,7 +8,8 @@ AS $$
WHERE table_name = _tn.relname
AND table_schema = _sn.nspname
AND _tn.oid = $1::oid
AND _sn.oid = _tn.relnamespace;
AND _sn.oid = _tn.relnamespace
ORDER BY ordinal_position;
$$ LANGUAGE SQL;