PQgetisnull: * returns the null status of a field value. */
| 3703 | * returns the null status of a field value. |
| 3704 | */ |
| 3705 | int |
| 3706 | PQgetisnull(const PGresult *res, int tup_num, int field_num) |
| 3707 | { |
| 3708 | if (!check_tuple_field_number(res, tup_num, field_num)) |
| 3709 | return 1; /* pretend it is null */ |
| 3710 | if (res->tuples[tup_num][field_num].len == NULL_LEN) |
| 3711 | return 1; |
| 3712 | else |
| 3713 | return 0; |
| 3714 | } |
| 3715 | |
| 3716 | /* PQnparams: |
| 3717 | * returns the number of input parameters of a prepared statement. |
no test coverage detected