I'm upgrade to Sequel 4.48 and I'm getting deprecation warnings for
`register_row_type`. Currently I have this type:
cognito-dev=# \dT+ encrypted_ssn
List of data types
Schema | Name | Internal name | Size | Elements | Owner |
Access privileges | Description
--------+---------------+---------------+-------+----------+---------+-------------------+-------------
public | encrypted_ssn | encrypted_ssn | tuple | | cognito |
|
(1 row)
CREATE TYPE encrypted_ssn AS (
ciphertext encrypted_ssn_ciphertext,
metadata encryption_metadata
);
right now I just do this with Sequel:
DB.register_row_type(:encrypted_ssn)
I guess this is deprecated now but I'm not clear on how to resolve it based
on the warning:
SEQUEL DEPRECATION WARNING: Calling conversion proc for subtype (oid: 338050
) of composite type (oid: 338058) not added until after composite type
registration is deprecated and will be removed in Sequel 5. Register
subtype conversion procs before registering composite type.
Do I need to query the pg_type table like Sequel does? I'm not clear on
what I'm supposed to register, with what public API, etc.
Thanks!
John
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.