Skip to content

Commit d525151

Browse files
authored
ext/pgsql: get_field_name helper, remove unused precaution for pg_type request. (#18025)
it is an internal table and oid is a real Oid (uint32_t) value.
1 parent fb07c62 commit d525151

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,8 +1670,7 @@ static zend_string *get_field_name(PGconn *pgsql, Oid oid)
16701670
continue;
16711671
}
16721672

1673-
char *end_ptr;
1674-
Oid tmp_oid = strtoul(tmp_oid_str, &end_ptr, 10);
1673+
Oid tmp_oid = strtoul(tmp_oid_str, NULL, 10);
16751674

16761675
zend_string *name = zend_string_init(tmp_name, strlen(tmp_name), 0);
16771676
zend_hash_index_update_ptr(&PGG(field_oids), tmp_oid, name);

0 commit comments

Comments
 (0)