On Saturday, February 8, 2014 4:19:11 AM UTC-8, zdenko wrote:
>
> Hi,
>
>
> I tried to register array type uuid:
> DB.extension :pg_array
> DB.register_array_type('uuid'),
>
> I'm getting this error: Sequel::Error: no conversion proc for
> :scalar_oid=>2950
>
> I'm not sure what I'm doing wrong.
>
Currently you should only call Database#register_array_type without a block
if you already have a conversion type proc for the scalar. I'll relax this
requirement so that it will work transparently without one in the next
version. Until then, do:
DB.register_array_type('uuid'){|v| v}
# or
DB.conversion_procs[2950] = lambda{|v| v}
DB.register_array_type('uuid')
# or
Sequel::Postgres::PGArray.register('uuid', :oid=>2951)
DB.reset_conversion_procs
Thanks,
Jeremy
--
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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.