will / crystal-pg

a postgres driver for crystal
BSD 3-Clause "New" or "Revised" License
462 stars 77 forks source link

Error: no overload matches 'PG::Decoders.array_decoder' with type UUID.class #224

Closed jwoertink closed 3 years ago

jwoertink commented 3 years ago

The PG::Decoders.array_decoder method supports a lot of the types that postgres supports, but doesn't include UUID.

I'm using version: 0.22.1

matthewmcgarvey commented 3 years ago

Looks like it's just a matter of adding UUID to this list https://github.com/will/crystal-pg/blob/cafe0fd89eeb68cd579f539da44b89afcd51a21f/src/pg/decoders/array_decoder.cr#L112