git.iko.soy/typeable/postgresql-simple
on master help sign in
Modifies typeInfo function to lookup type info by the oid in the given field, rather than fetching the oid of the column. See issue #159
bb1e42ftimmy_tofu
src/Database/PostgreSQL/Simple/FromField.hs+1−1
@@ -218,7 +218,7 @@ typename field = typname <$> typeInfo field
218
218
219typeInfo :: Field -> Conversion TypeInfo
219typeInfo :: Field -> Conversion TypeInfo
220typeInfo Field{..} = Conversion $ \conn -> do
220typeInfo Field{..} = Conversion $ \conn -> do
221− Ok <$> (getTypeInfo conn =<< PQ.ftype result column)
221+ Ok <$> (getTypeInfo conn typeOid)
222
222
223typeInfoByOid :: PQ.Oid -> Conversion TypeInfo
223typeInfoByOid :: PQ.Oid -> Conversion TypeInfo
224typeInfoByOid oid = Conversion $ \conn -> do
224typeInfoByOid oid = Conversion $ \conn -> do