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
commitbb1e42fcb7f93d129dc63d8d80ad76ab970eb274
authortimmy_tofu <timmytofu@users.noreply.github.com>
dateWed 12 Aug 2015, 11:23 (11 years ago)
parentb8103f4
src/Database/PostgreSQL/Simple/FromField.hs+1−1
@@ -218,7 +218,7 @@ typename field = typname <$> typeInfo field
218218
219219typeInfo :: Field -> Conversion TypeInfo
220220typeInfo Field{..} = Conversion $ \conn -> do
221− Ok <$> (getTypeInfo conn =<< PQ.ftype result column)
221+ Ok <$> (getTypeInfo conn typeOid)
222222
223223typeInfoByOid :: PQ.Oid -> Conversion TypeInfo
224224typeInfoByOid oid = Conversion $ \conn -> do