@@ -244,9 +244,11 @@ tableOid Field{..} = toMaybeOid (unsafeDupablePerformIO (PQ.ftable result column
244 then Nothing
244 then Nothing
245 else Just x
245 else Just x
247−-- | If the column has a table associated with it, this returns the number
247+-- | If the column has a table associated with it, this returns the
248−-- off the associated table column. Numbering starts from 0. Analogous
248+-- number of the associated table column. Table columns have
249+-- nonzero numbers. Zero is returned if the specified column is not
250+-- a simple reference to a table column, or when using pre-3.0
249−-- to libpq's @PQftablecol@.
251+-- protocol. Analogous to libpq's @PQftablecol@.
251tableColumn :: Field -> Int
253tableColumn :: Field -> Int
252tableColumn Field{..} = fromCol (unsafeDupablePerformIO (PQ.ftablecol result column))
254tableColumn Field{..} = fromCol (unsafeDupablePerformIO (PQ.ftablecol result column))