* PQgetvalue: * return the value of field 'field_num' of row 'tup_num' */
| 3678 | * return the value of field 'field_num' of row 'tup_num' |
| 3679 | */ |
| 3680 | char * |
| 3681 | PQgetvalue(const PGresult *res, int tup_num, int field_num) |
| 3682 | { |
| 3683 | if (!check_tuple_field_number(res, tup_num, field_num)) |
| 3684 | return NULL; |
| 3685 | return res->tuples[tup_num][field_num].value; |
| 3686 | } |
| 3687 | |
| 3688 | /* PQgetlength: |
| 3689 | * returns the actual length of a field value in bytes. |