| 3522 | } |
| 3523 | |
| 3524 | Oid |
| 3525 | PQftype(const PGresult *res, int field_num) |
| 3526 | { |
| 3527 | if (!check_field_number(res, field_num)) |
| 3528 | return InvalidOid; |
| 3529 | if (res->attDescs) |
| 3530 | return res->attDescs[field_num].typid; |
| 3531 | else |
| 3532 | return InvalidOid; |
| 3533 | } |
| 3534 | |
| 3535 | int |
| 3536 | PQfsize(const PGresult *res, int field_num) |