Merge pull request #160 from timmytofu/type-info-by-field-oid
Modifies typeInfo function to lookup type info by the oid in the give…
commit711ced5ffacdbb9ec52e50a90d3b0bd6abf28467
authorLeon P Smith <leon.p.smith+github@gmail.com>
dateWed 12 Aug 2015, 13:28 (11 years ago)
parentb8103f4bb1e42f
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