Skip to content

Commit

Permalink
Merge pull request #160 from timmytofu/type-info-by-field-oid
Browse files Browse the repository at this point in the history
Modifies typeInfo function to lookup type info by the oid in the give…
  • Loading branch information
lpsmith committed Aug 12, 2015
2 parents b8103f4 + bb1e42f commit 711ced5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/PostgreSQL/Simple/FromField.hs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ typename field = typname <$> typeInfo field

typeInfo :: Field -> Conversion TypeInfo
typeInfo Field{..} = Conversion $ \conn -> do
Ok <$> (getTypeInfo conn =<< PQ.ftype result column)
Ok <$> (getTypeInfo conn typeOid)

typeInfoByOid :: PQ.Oid -> Conversion TypeInfo
typeInfoByOid oid = Conversion $ \conn -> do
Expand Down

0 comments on commit 711ced5

Please sign in to comment.