File tree 1 file changed +2
-20
lines changed
1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -1572,15 +1572,7 @@ PHP_FUNCTION(pg_field_table)
1572
1572
}
1573
1573
1574
1574
if (return_oid ) {
1575
- #if UINT_MAX > ZEND_LONG_MAX /* Oid is unsigned int, we don't need this code, where LONG is wider */
1576
- if (oid > ZEND_LONG_MAX ) {
1577
- smart_str oidstr = {0 };
1578
- smart_str_append_unsigned (& oidstr , oid );
1579
- smart_str_0 (& oidstr );
1580
- RETURN_NEW_STR (oidstr .s );
1581
- } else
1582
- #endif
1583
- RETURN_LONG ((zend_long )oid );
1575
+ PGSQL_RETURN_OID (oid );
1584
1576
}
1585
1577
1586
1578
/* try to lookup the table name in the resource list */
@@ -1675,17 +1667,7 @@ static void php_pgsql_get_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_typ
1675
1667
case PHP_PG_FIELD_TYPE_OID :
1676
1668
1677
1669
oid = PQftype (pgsql_result , (int )field );
1678
- #if UINT_MAX > ZEND_LONG_MAX
1679
- if (oid > ZEND_LONG_MAX ) {
1680
- smart_str s = {0 };
1681
- smart_str_append_unsigned (& s , oid );
1682
- smart_str_0 (& s );
1683
- RETURN_NEW_STR (s .s );
1684
- } else
1685
- #endif
1686
- {
1687
- RETURN_LONG ((zend_long )oid );
1688
- }
1670
+ PGSQL_RETURN_OID (oid );
1689
1671
break ;
1690
1672
EMPTY_SWITCH_DEFAULT_CASE ()
1691
1673
}
You can’t perform that action at this time.
0 commit comments