mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Fields order enforced in composite types adapter
This commit is contained in:
parent
352d0d1f07
commit
8ac5f0070a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user