Fields order enforced in composite types adapter

This commit is contained in:
Daniele Varrazzo 2011-02-09 01:11:36 +01:00
parent 352d0d1f07
commit 8ac5f0070a

View File

@ -841,7 +841,8 @@ SELECT t.oid, attname, atttypid
FROM pg_type t
JOIN pg_namespace ns ON typnamespace = ns.oid
JOIN pg_attribute a ON attrelid = typrelid
WHERE typname = %s and nspname = 'public';
WHERE typname = %s and nspname = 'public'
ORDER BY attnum;
""", (name, ))
recs = curs.fetchall()