@@ -82,8 +82,7 @@ format :: Field -> PQ.Format
82format Field{..} = unsafePerformIO (PQ.fformat result column)
82format Field{..} = unsafePerformIO (PQ.fformat result column)
84typeOid :: Field -> PQ.Oid
84typeOid :: Field -> PQ.Oid
85−typeOid Field{..} = unsafePerformIO (PQ.ftype result column)
85+typeOid = typoid . typ . typeinfo
88data Connection = Connection {
87data Connection = Connection {
89 connectionHandle :: {-# UNPACK #-} !(MVar PQ.Connection)
88 connectionHandle :: {-# UNPACK #-} !(MVar PQ.Connection)