Lines Matching refs:result

100 	if (result_handle->result == NULL) { \
231 PQclear(pg_result->result); in pgsql_result_free()
232 pg_result->result = NULL; in pgsql_result_free()
239 if (pg_result->result) { in pgsql_result_free_obj()
797 char *result; in php_pgsql_get_link_info() local
815 result = PQdb(pgsql); in php_pgsql_get_link_info()
820 result = PQoptions(pgsql); in php_pgsql_get_link_info()
823 result = PQport(pgsql); in php_pgsql_get_link_info()
826 result = PQtty(pgsql); in php_pgsql_get_link_info()
829 result = PQhost(pgsql); in php_pgsql_get_link_info()
856 if (result) { in php_pgsql_get_link_info()
857 RETURN_STRING(result); in php_pgsql_get_link_info()
1041 pg_result->result = pgsql_result; in PHP_FUNCTION()
1162 pg_result->result = pgsql_result; in PHP_FUNCTION()
1240 pg_result->result = pgsql_result; in PHP_FUNCTION()
1347 pg_result->result = pgsql_result; in PHP_FUNCTION()
1364 zval *result; in php_pgsql_get_result_info() local
1368 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &result, pgsql_result_ce) == FAILURE) { in php_pgsql_get_result_info()
1372 pg_result = Z_PGSQL_RESULT_P(result); in php_pgsql_get_result_info()
1374 pgsql_result = pg_result->result; in php_pgsql_get_result_info()
1473 PGresult *result = PQexec(pgsql, "select oid,typname from pg_type"); in get_field_name() local
1474 if (!result || PQresultStatus(result) != PGRES_TUPLES_OK) { in get_field_name()
1475 if (result) { in get_field_name()
1476 PQclear(result); in get_field_name()
1481 int num_rows = PQntuples(result); in get_field_name()
1482 int oid_offset = PQfnumber(result,"oid"); in get_field_name()
1483 int name_offset = PQfnumber(result,"typname"); in get_field_name()
1485 char *tmp_oid_str = PQgetvalue(result, i, oid_offset); in get_field_name()
1490 char *tmp_name = PQgetvalue(result, i, name_offset); in get_field_name()
1505 PQclear(result); in get_field_name()
1512 zval *result; in PHP_FUNCTION() local
1517 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|b", &result, pgsql_result_ce, &fnum, &return_oid) =… in PHP_FUNCTION()
1521 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
1529 if (fnum >= PQnfields(pg_result->result)) { in PHP_FUNCTION()
1534 Oid oid = PQftable(pg_result->result, (int)fnum); in PHP_FUNCTION()
1585 zval *result; in php_pgsql_get_field_info() local
1591 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &result, pgsql_result_ce, &field) == FAILURE) { in php_pgsql_get_field_info()
1595 pg_result = Z_PGSQL_RESULT_P(result); in php_pgsql_get_field_info()
1603 pgsql_result = pg_result->result; in php_pgsql_get_field_info()
1661 zval *result; in PHP_FUNCTION() local
1667 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os", &result, pgsql_result_ce, &field, &field_len) == … in PHP_FUNCTION()
1671 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
1673 pgsql_result = pg_result->result; in PHP_FUNCTION()
1680 PGresult *result, zend_string *field_name, zend_long field_offset, int arg_num) { in field_arg_to_offset() argument
1682 field_offset = PQfnumber(result, ZSTR_VAL(field_name)); in field_arg_to_offset()
1694 if (field_offset >= PQnfields(result)) { in field_arg_to_offset()
1705 zval *result; in PHP_FUNCTION() local
1723 Z_PARAM_OBJECT_OF_CLASS(result, pgsql_result_ce) in PHP_FUNCTION()
1728 Z_PARAM_OBJECT_OF_CLASS(result, pgsql_result_ce) in PHP_FUNCTION()
1738 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
1740 pgsql_result = pg_result->result; in PHP_FUNCTION()
1758 row, Z_LVAL_P(result)); in PHP_FUNCTION()
1781 zval *result; in php_pgsql_fetch_hash() local
1792 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l!Ch", &result, pgsql_result_ce, &row, &row_is_null,… in php_pgsql_fetch_hash()
1800 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l!l", &result, pgsql_result_ce, &row, &row_is_null, … in php_pgsql_fetch_hash()
1815 pg_result = Z_PGSQL_RESULT_P(result); in php_pgsql_fetch_hash()
1817 pgsql_result = pg_result->result; in php_pgsql_fetch_hash()
1822 row, Z_LVAL_P(result)); in php_pgsql_fetch_hash()
1925 zval *result; in PHP_FUNCTION() local
1930 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &result, pgsql_result_ce, &result_type) == FAILU… in PHP_FUNCTION()
1939 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
1941 pgsql_result = pg_result->result; in PHP_FUNCTION()
1951 zval *result; in PHP_FUNCTION() local
1958 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &result, pgsql_result_ce, &colno) == FAILURE) { in PHP_FUNCTION()
1962 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
1970 pgsql_result = pg_result->result; in PHP_FUNCTION()
1997 zval *result; in PHP_FUNCTION() local
2001 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &result, pgsql_result_ce, &row) == FAILURE) { in PHP_FUNCTION()
2005 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
2008 if (row < 0 || row >= PQntuples(pg_result->result)) { in PHP_FUNCTION()
2024 zval *result; in php_pgsql_data_info() local
2043 Z_PARAM_OBJECT_OF_CLASS(result, pgsql_result_ce) in php_pgsql_data_info()
2048 Z_PARAM_OBJECT_OF_CLASS(result, pgsql_result_ce) in php_pgsql_data_info()
2058 pg_result = Z_PGSQL_RESULT_P(result); in php_pgsql_data_info()
2060 pgsql_result = pg_result->result; in php_pgsql_data_info()
2077 row, Z_LVAL_P(result)); in php_pgsql_data_info()
2131 zval *result; in PHP_FUNCTION() local
2134 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &result, pgsql_result_ce) == FAILURE) { in PHP_FUNCTION()
2138 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
2149 zval *result; in PHP_FUNCTION() local
2154 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &result, pgsql_result_ce) == FAILURE) { in PHP_FUNCTION()
2158 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
2160 pgsql_result = pg_result->result; in PHP_FUNCTION()
2767 zend_long result, offset = 0, whence = SEEK_CUR; in PHP_FUNCTION() local
2783 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence); in PHP_FUNCTION()
2785 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence); in PHP_FUNCTION()
2788 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence); in PHP_FUNCTION()
2790 if (result > -1) { in PHP_FUNCTION()
2831 int result; in PHP_FUNCTION() local
2842 result = lo_truncate64((PGconn *)pgsql->conn, pgsql->lofd, size); in PHP_FUNCTION()
2844 result = lo_truncate((PGconn *)pgsql->conn, pgsql->lofd, size); in PHP_FUNCTION()
2847 result = lo_truncate((PGconn *)pgsql->conn, pgsql->lofd, size); in PHP_FUNCTION()
2849 if (!result) { in PHP_FUNCTION()
2975 int result = 0; in PHP_FUNCTION() local
2992 result = PQendcopy(pgsql); in PHP_FUNCTION()
2994 if (result!=0) { in PHP_FUNCTION()
3010 int result = 0; in PHP_FUNCTION() local
3028 result = PQputline(pgsql, query); in PHP_FUNCTION()
3029 if (result==EOF) { in PHP_FUNCTION()
3397 zval *result; in PHP_FUNCTION() local
3402 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &result, pgsql_result_ce) == FAILURE) { in PHP_FUNCTION()
3406 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
3407 pgsql_result = pg_result->result; in PHP_FUNCTION()
3420 zval *result; in PHP_FUNCTION() local
3426 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &result, pgsql_result_ce, &fieldcode) == FAILURE)… in PHP_FUNCTION()
3430 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
3431 pgsql_result = pg_result->result; in PHP_FUNCTION()
3609 PGresult *result; in _php_pgsql_link_has_results() local
3610 while ((result = PQgetResult(pgsql))) { in _php_pgsql_link_has_results()
3611 PQclear(result); in _php_pgsql_link_has_results()
3978 pg_result->result = pgsql_result; in PHP_FUNCTION()
3986 zval *result; in PHP_FUNCTION() local
3992 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &result, pgsql_result_ce, &result_type) == FAILU… in PHP_FUNCTION()
3996 pg_result = Z_PGSQL_RESULT_P(result); in PHP_FUNCTION()
3998 pgsql_result = pg_result->result; in PHP_FUNCTION()
4540 …t(PGconn *pg_link, const zend_string *table_name, const zval *values, zval *result, zend_ulong opt) in php_pgsql_convert() argument
4549 ZEND_ASSERT(Z_TYPE_P(result) == IS_ARRAY); in php_pgsql_convert()
5170 zend_hash_update(Z_ARRVAL_P(result), field, &new_val); in php_pgsql_convert()
5173 add_assoc_zval(result, escaped, &new_val); in php_pgsql_convert()
5467 pg_res->result = pg_result; in PHP_FUNCTION()