Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default decoder for anonymous record types to BasicTypeRegistry
The PostgreSQL server just sends the generic OID 2249 for generic record/composite types in query results like: SELECT row(123, 'str', true, null) Since we don't get the OIDs of the record items, we can not properly decode them. Nevertheless it's helpful to decode at least with the default type map and decode all items to an array of strings like so: c.exec("SELECT 6, row(123, 'str', true, null), 7").values => [[6, ["123", "str", "t", nil], 7]] instead of: => [[6, "(123,str,t,)", 7]] Related to #578
- Loading branch information