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,8 +8,9 @@ AS $$
WHERE table_name = _tn.relname WHERE table_name = _tn.relname
AND table_schema = _sn.nspname AND table_schema = _sn.nspname
AND _tn.oid = $1::oid AND _tn.oid = $1::oid
AND _sn.oid = _tn.relnamespace; AND _sn.oid = _tn.relnamespace
ORDER BY ordinal_position;
$$ LANGUAGE SQL; $$ LANGUAGE SQL;
-- This is to migrate from pre-0.2.0 version -- This is to migrate from pre-0.2.0 version