Lines Matching refs:pgsql_result

1128 	PGresult *pgsql_result;  in PHP_FUNCTION()  local
1154 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1155 PQclear(pgsql_result); in PHP_FUNCTION()
1161 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1163 PQclear(pgsql_result); in PHP_FUNCTION()
1165 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1168 if (pgsql_result) { in PHP_FUNCTION()
1169 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1180 PQclear(pgsql_result); in PHP_FUNCTION()
1185 if (pgsql_result) { in PHP_FUNCTION()
1189 pg_result->result = pgsql_result; in PHP_FUNCTION()
1192 PQclear(pgsql_result); in PHP_FUNCTION()
1224 PGresult *pgsql_result; in PHP_FUNCTION() local
1253 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1254 PQclear(pgsql_result); in PHP_FUNCTION()
1283 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1286 PQclear(pgsql_result); in PHP_FUNCTION()
1288 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1292 if (pgsql_result) { in PHP_FUNCTION()
1293 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1306 PQclear(pgsql_result); in PHP_FUNCTION()
1311 if (pgsql_result) { in PHP_FUNCTION()
1315 pg_result->result = pgsql_result; in PHP_FUNCTION()
1318 PQclear(pgsql_result); in PHP_FUNCTION()
1334 PGresult *pgsql_result; in PHP_FUNCTION() local
1363 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1364 PQclear(pgsql_result); in PHP_FUNCTION()
1370 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
1372 PQclear(pgsql_result); in PHP_FUNCTION()
1374 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
1377 if (pgsql_result) { in PHP_FUNCTION()
1378 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1389 PQclear(pgsql_result); in PHP_FUNCTION()
1394 if (pgsql_result) { in PHP_FUNCTION()
1398 pg_result->result = pgsql_result; in PHP_FUNCTION()
1401 PQclear(pgsql_result); in PHP_FUNCTION()
1420 PGresult *pgsql_result; in PHP_FUNCTION() local
1449 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1450 PQclear(pgsql_result); in PHP_FUNCTION()
1478 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1481 PQclear(pgsql_result); in PHP_FUNCTION()
1483 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1487 if (pgsql_result) { in PHP_FUNCTION()
1488 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1501 PQclear(pgsql_result); in PHP_FUNCTION()
1506 if (pgsql_result) { in PHP_FUNCTION()
1510 pg_result->result = pgsql_result; in PHP_FUNCTION()
1513 PQclear(pgsql_result); in PHP_FUNCTION()
1528 PGresult *pgsql_result; in php_pgsql_get_result_info() local
1537 pgsql_result = pg_result->result; in php_pgsql_get_result_info()
1541 RETVAL_LONG(PQntuples(pgsql_result)); in php_pgsql_get_result_info()
1544 RETVAL_LONG(PQnfields(pgsql_result)); in php_pgsql_get_result_info()
1547 RETVAL_LONG(atoi(PQcmdTuples(pgsql_result))); in php_pgsql_get_result_info()
1755 PGresult *pgsql_result; in php_pgsql_get_field_info() local
1772 pgsql_result = pg_result->result; in php_pgsql_get_field_info()
1774 if (field >= PQnfields(pgsql_result)) { in php_pgsql_get_field_info()
1781 RETURN_STRING(PQfname(pgsql_result, (int)field)); in php_pgsql_get_field_info()
1784 RETURN_LONG(PQfsize(pgsql_result, (int)field)); in php_pgsql_get_field_info()
1787 RETURN_STR(get_field_name(pg_result->conn, PQftype(pgsql_result, (int)field))); in php_pgsql_get_field_info()
1791 oid = PQftype(pgsql_result, (int)field); in php_pgsql_get_field_info()
1833 PGresult *pgsql_result; in PHP_FUNCTION() local
1843 pgsql_result = pg_result->result; in PHP_FUNCTION()
1845 RETURN_LONG(PQfnumber(pgsql_result, field)); in PHP_FUNCTION()
1879 PGresult *pgsql_result; in PHP_FUNCTION() local
1910 pgsql_result = pg_result->result; in PHP_FUNCTION()
1917 if (pgsql_row >= PQntuples(pgsql_result)) { in PHP_FUNCTION()
1926 if (row >= PQntuples(pgsql_result)) { in PHP_FUNCTION()
1934 field_offset = field_arg_to_offset(pgsql_result, field_name, field_offset, ZEND_NUM_ARGS()); in PHP_FUNCTION()
1939 if (PQgetisnull(pgsql_result, pgsql_row, field_offset)) { in PHP_FUNCTION()
1942 RETVAL_STRINGL(PQgetvalue(pgsql_result, pgsql_row, field_offset), in PHP_FUNCTION()
1943 PQgetlength(pgsql_result, pgsql_row, field_offset)); in PHP_FUNCTION()
1952 PGresult *pgsql_result; in php_pgsql_fetch_hash() local
1995 pgsql_result = pg_result->result; in php_pgsql_fetch_hash()
1998 if (row >= PQntuples(pgsql_result)) { in php_pgsql_fetch_hash()
2008 if (pgsql_row < 0 || pgsql_row >= PQntuples(pgsql_result)) { in php_pgsql_fetch_hash()
2015 for (i = 0, num_fields = PQnfields(pgsql_result); i < num_fields; i++) { in php_pgsql_fetch_hash()
2016 if (PQgetisnull(pgsql_result, pgsql_row, i)) { in php_pgsql_fetch_hash()
2021 field_name = PQfname(pgsql_result, i); in php_pgsql_fetch_hash()
2025 char *element = PQgetvalue(pgsql_result, pgsql_row, i); in php_pgsql_fetch_hash()
2034 field_name = PQfname(pgsql_result, i); in php_pgsql_fetch_hash()
2105 PGresult *pgsql_result; in PHP_FUNCTION() local
2121 pgsql_result = pg_result->result; in PHP_FUNCTION()
2124 php_pgsql_result2array(pgsql_result, return_value, result_type); in PHP_FUNCTION()
2132 PGresult *pgsql_result; in PHP_FUNCTION() local
2152 pgsql_result = pg_result->result; in PHP_FUNCTION()
2154 num_fields = PQnfields(pgsql_result); in PHP_FUNCTION()
2162 if ((pg_numrows = PQntuples(pgsql_result)) <= 0) { in PHP_FUNCTION()
2167 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION()
2170 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()
2211 PGresult *pgsql_result; in php_pgsql_data_info() local
2243 pgsql_result = pg_result->result; in php_pgsql_data_info()
2250 if (pgsql_row < 0 || pgsql_row >= PQntuples(pgsql_result)) { in php_pgsql_data_info()
2258 if (row >= PQntuples(pgsql_result)) { in php_pgsql_data_info()
2266 field_offset = field_arg_to_offset(pgsql_result, field_name, field_offset, ZEND_NUM_ARGS()); in php_pgsql_data_info()
2273 RETVAL_LONG(PQgetlength(pgsql_result, pgsql_row, field_offset)); in php_pgsql_data_info()
2276 RETVAL_LONG(PQgetisnull(pgsql_result, pgsql_row, field_offset)); in php_pgsql_data_info()
2333 PGresult *pgsql_result; in PHP_FUNCTION() local
2343 pgsql_result = pg_result->result; in PHP_FUNCTION()
2345 oid = PQoidValue(pgsql_result); in PHP_FUNCTION()
3274 PGresult *pgsql_result; in PHP_FUNCTION() local
3303 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3304 PQclear(pgsql_result); in PHP_FUNCTION()
3306 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3312 if (pgsql_result) { in PHP_FUNCTION()
3313 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
3320 if (pgsql_result) { in PHP_FUNCTION()
3323 PQclear(pgsql_result); in PHP_FUNCTION()
3343 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3344 PQclear(pgsql_result); in PHP_FUNCTION()
3347 PQclear(pgsql_result); in PHP_FUNCTION()
3352 PQclear(pgsql_result); in PHP_FUNCTION()
3373 PGresult *pgsql_result; in PHP_FUNCTION() local
3401 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3402 PQclear(pgsql_result); in PHP_FUNCTION()
3404 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3411 if (pgsql_result) { in PHP_FUNCTION()
3412 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
3419 if (pgsql_result) { in PHP_FUNCTION()
3421 PQclear(pgsql_result); in PHP_FUNCTION()
3448 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3449 if (PGRES_COMMAND_OK != PQresultStatus(pgsql_result)) { in PHP_FUNCTION()
3453 PQclear(pgsql_result); in PHP_FUNCTION()
3459 PQclear(pgsql_result); in PHP_FUNCTION()
3465 PQclear(pgsql_result); in PHP_FUNCTION()
3640 PGresult *pgsql_result; in PHP_FUNCTION() local
3649 pgsql_result = pg_result->result; in PHP_FUNCTION()
3650 if (!pgsql_result) { in PHP_FUNCTION()
3654 err = PQresultErrorMessage(pgsql_result); in PHP_FUNCTION()
3664 PGresult *pgsql_result; in PHP_FUNCTION() local
3674 pgsql_result = pg_result->result; in PHP_FUNCTION()
3675 if (!pgsql_result) { in PHP_FUNCTION()
3689 field = PQresultErrorField(pgsql_result, (int)fieldcode); in PHP_FUNCTION()
3792 PGresult *pgsql_result; in php_pgsql_do_async() local
3821 while ((pgsql_result = PQgetResult(pgsql))) { in php_pgsql_do_async()
3822 PQclear(pgsql_result); in php_pgsql_do_async()
4208 PGresult *pgsql_result; in PHP_FUNCTION() local
4219 pgsql_result = PQgetResult(pgsql); in PHP_FUNCTION()
4220 if (!pgsql_result) { in PHP_FUNCTION()
4228 pg_result->result = pgsql_result; in PHP_FUNCTION()
4239 PGresult *pgsql_result; in PHP_FUNCTION() local
4250 pgsql_result = pg_result->result; in PHP_FUNCTION()
4253 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
4257 RETURN_STRING(PQcmdStatus(pgsql_result)); in PHP_FUNCTION()