Lines Matching refs:oid
66 #define PGSQL_RETURN_OID(oid) do { \ argument
67 if (oid > LONG_MAX) { \
69 smart_str_append_unsigned(&s, oid); \
73 RETURN_LONG((long)oid); \
2078 static char *get_field_name(PGconn *pgsql, Oid oid, HashTable *list TSRMLS_DC) argument
2087 smart_str_append_unsigned(&str, oid);
2125 if (!ret && strtoul(tmp_oid, &end_ptr, 10)==oid) {
2146 Oid oid; local
2162 oid = PQftable(pg_result->result, fnum);
2164 if (InvalidOid == oid) {
2171 if (oid > LONG_MAX) {
2173 smart_str_append_unsigned(&oidstr, oid);
2178 RETURN_LONG((long)oid);
2183 smart_str_append_unsigned(&hash_key, oid);
2195 smart_str_append_unsigned(&querystr, oid);
2242 Oid oid; local
2275 oid = PQftype(pgsql_result, field);
2277 if (oid > LONG_MAX) {
2279 smart_str_append_unsigned(&s, oid);
2287 Z_LVAL_P(return_value) = (long)oid;
2834 Oid oid; local
2844 oid = PQoidValue(pgsql_result);
2845 if (oid == InvalidOid) {
2848 PGSQL_RETURN_OID(oid);
2933 zval *pgsql_link = NULL, *oid = NULL; local
2938 if (zend_parse_parameters(argc TSRMLS_CC, "|zz", &pgsql_link, &oid) == FAILURE) {
2943 oid = pgsql_link;
2957 if (oid) {
2961 switch (Z_TYPE_P(oid)) {
2965 wanted_oid = (Oid)strtoul(Z_STRVAL_P(oid), &end_ptr, 10);
2966 if ((Z_STRVAL_P(oid)+Z_STRLEN_P(oid)) != end_ptr) {
2974 if (Z_LVAL_P(oid) < (long)InvalidOid) {
2978 wanted_oid = (Oid)Z_LVAL_P(oid);
3011 Oid oid; local
3018 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3031 oid = (Oid)oid_long;
3035 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3050 oid = (Oid)oid_long;
3064 if (lo_unlink(pgsql, oid) == -1) {
3065 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to delete PostgreSQL large object %u", oid);
3081 Oid oid; local
3090 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3103 oid = (Oid)oid_long;
3107 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3122 oid = (Oid)oid_long;
3157 if ((pgsql_lofd = lo_open(pgsql, oid, pgsql_mode)) == -1) {
3159 if ((oid = lo_creat(pgsql, INV_READ|INV_WRITE)) == 0) {
3164 if ((pgsql_lofd = lo_open(pgsql, oid, pgsql_mode)) == -1) {
3165 if (lo_unlink(pgsql, oid) == -1) {
3321 zval *pgsql_link = NULL, *oid = NULL; local
3329 "rs|z", &pgsql_link, &file_in, &name_len, &oid) == SUCCESS) {
3333 "s|z", &file_in, &name_len, &oid) == SUCCESS) {
3364 if (oid) {
3369 switch (Z_TYPE_P(oid)) {
3373 wanted_oid = (Oid)strtoul(Z_STRVAL_P(oid), &end_ptr, 10);
3374 if ((Z_STRVAL_P(oid)+Z_STRLEN_P(oid)) != end_ptr) {
3382 if (Z_LVAL_P(oid) < (long)InvalidOid) {
3386 wanted_oid = (Oid)Z_LVAL_P(oid);
3421 Oid oid; local
3432 oid = (Oid)oid_long;
3436 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3449 oid = (Oid)oid_long;
3455 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3466 oid = (Oid)strtoul(oid_string, &end_ptr, 10);
3480 oid = (Oid)oid_long;
3505 if (lo_export(pgsql, oid, file_out)) {