pg_result         736 ext/pgsql/pgsql.c 	PHP_FALIAS(pg_result,	     pg_fetch_result,   arginfo_pg_get_result)
pg_result        1047 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result = (pgsql_result_handle *)rsrc->ptr;
pg_result        1049 ext/pgsql/pgsql.c 	PQclear(pg_result->result);
pg_result        1050 ext/pgsql/pgsql.c 	efree(pg_result);
pg_result        1281 ext/pgsql/pgsql.c 	PGresult *pg_result;
pg_result        1380 ext/pgsql/pgsql.c 				PGresult *pg_result;
pg_result        1381 ext/pgsql/pgsql.c 				pg_result = PQexec(le->ptr, "select 1");
pg_result        1382 ext/pgsql/pgsql.c 				PQclear(pg_result);
pg_result        1407 ext/pgsql/pgsql.c 				pg_result = PQexec(pgsql, "RESET ALL;");
pg_result        1408 ext/pgsql/pgsql.c 				PQclear(pg_result);
pg_result        1831 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        1886 ext/pgsql/pgsql.c 				pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result        1887 ext/pgsql/pgsql.c 				pg_result->conn = pgsql;
pg_result        1888 ext/pgsql/pgsql.c 				pg_result->result = pgsql_result;
pg_result        1889 ext/pgsql/pgsql.c 				pg_result->row = 0;
pg_result        1890 ext/pgsql/pgsql.c 				RETURN_RES(zend_register_resource(pg_result, le_result));
pg_result        1934 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2021 ext/pgsql/pgsql.c 				pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result        2022 ext/pgsql/pgsql.c 				pg_result->conn = pgsql;
pg_result        2023 ext/pgsql/pgsql.c 				pg_result->result = pgsql_result;
pg_result        2024 ext/pgsql/pgsql.c 				pg_result->row = 0;
pg_result        2025 ext/pgsql/pgsql.c 				RETURN_RES(zend_register_resource(pg_result, le_result));
pg_result        2050 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2105 ext/pgsql/pgsql.c 				pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result        2106 ext/pgsql/pgsql.c 				pg_result->conn = pgsql;
pg_result        2107 ext/pgsql/pgsql.c 				pg_result->result = pgsql_result;
pg_result        2108 ext/pgsql/pgsql.c 				pg_result->row = 0;
pg_result        2109 ext/pgsql/pgsql.c 				RETURN_RES(zend_register_resource(pg_result, le_result));
pg_result        2137 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2225 ext/pgsql/pgsql.c 				pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result        2226 ext/pgsql/pgsql.c 				pg_result->conn = pgsql;
pg_result        2227 ext/pgsql/pgsql.c 				pg_result->result = pgsql_result;
pg_result        2228 ext/pgsql/pgsql.c 				pg_result->row = 0;
pg_result        2229 ext/pgsql/pgsql.c 				RETURN_RES(zend_register_resource(pg_result, le_result));
pg_result        2250 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2256 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2260 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2400 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2412 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2416 ext/pgsql/pgsql.c 	if (fnum < 0 || fnum >= PQnfields(pg_result->result)) {
pg_result        2421 ext/pgsql/pgsql.c 	oid = PQftable(pg_result->result, (int)fnum);
pg_result        2456 ext/pgsql/pgsql.c 		if ((tmp_res = PQexec(pg_result->conn, ZSTR_VAL(querystr.s))) == NULL || PQresultStatus(tmp_res) != PGRES_TUPLES_OK) {
pg_result        2498 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2505 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2510 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2525 ext/pgsql/pgsql.c 				char *name = get_field_name(pg_result->conn, PQftype(pgsql_result, (int)field), &EG(regular_list));
pg_result        2591 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2597 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2601 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2614 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2627 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2631 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2633 ext/pgsql/pgsql.c 		if (pg_result->row < 0) {
pg_result        2634 ext/pgsql/pgsql.c 			pg_result->row = 0;
pg_result        2636 ext/pgsql/pgsql.c 		pgsql_row = pg_result->row;
pg_result        2680 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2725 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2729 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2738 ext/pgsql/pgsql.c 		pg_result->row = pgsql_row;
pg_result        2741 ext/pgsql/pgsql.c 		pgsql_row = pg_result->row;
pg_result        2745 ext/pgsql/pgsql.c 		pg_result->row++;
pg_result        2879 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2885 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2889 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2904 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2913 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2917 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2947 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2953 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2957 ext/pgsql/pgsql.c 	if (row < 0 || row >= PQntuples(pg_result->result)) {
pg_result        2962 ext/pgsql/pgsql.c 	pg_result->row = (int)row;
pg_result        2977 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        2990 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        2994 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        2996 ext/pgsql/pgsql.c 		if (pg_result->row < 0) {
pg_result        2997 ext/pgsql/pgsql.c 			pg_result->row = 0;
pg_result        2999 ext/pgsql/pgsql.c 		pgsql_row = pg_result->row;
pg_result        3063 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        3069 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        3084 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        3093 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        3097 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        4618 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        4626 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        4630 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        4647 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        4655 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        4659 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        5204 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        5219 ext/pgsql/pgsql.c 	pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
pg_result        5220 ext/pgsql/pgsql.c 	pg_result->conn = pgsql;
pg_result        5221 ext/pgsql/pgsql.c 	pg_result->result = pgsql_result;
pg_result        5222 ext/pgsql/pgsql.c 	pg_result->row = 0;
pg_result        5223 ext/pgsql/pgsql.c 	RETURN_RES(zend_register_resource(pg_result, le_result));
pg_result        5235 ext/pgsql/pgsql.c 	pgsql_result_handle *pg_result;
pg_result        5242 ext/pgsql/pgsql.c 	if ((pg_result = (pgsql_result_handle *)zend_fetch_resource(Z_RES_P(result), "PostgreSQL result", le_result)) == NULL) {
pg_result        5246 ext/pgsql/pgsql.c 	pgsql_result = pg_result->result;
pg_result        5490 ext/pgsql/pgsql.c 	PGresult *pg_result;
pg_result        5554 ext/pgsql/pgsql.c 	pg_result = PQexec(pg_link, ZSTR_VAL(querystr.s));
pg_result        5555 ext/pgsql/pgsql.c 	if (PQresultStatus(pg_result) != PGRES_TUPLES_OK || (num_rows = PQntuples(pg_result)) == 0) {
pg_result        5558 ext/pgsql/pgsql.c 		PQclear(pg_result);
pg_result        5567 ext/pgsql/pgsql.c 		add_assoc_long_ex(&elem, "num", sizeof("num") - 1, atoi(PQgetvalue(pg_result, i, 1)));
pg_result        5569 ext/pgsql/pgsql.c 		add_assoc_string_ex(&elem, "type", sizeof("type") - 1, PQgetvalue(pg_result, i, 2));
pg_result        5571 ext/pgsql/pgsql.c 		add_assoc_long_ex(&elem, "len", sizeof("len") - 1, atoi(PQgetvalue(pg_result,i,3)));
pg_result        5573 ext/pgsql/pgsql.c 		add_assoc_bool_ex(&elem, "not null", sizeof("not null") - 1, !strcmp(PQgetvalue(pg_result, i, 4), "t"));
pg_result        5575 ext/pgsql/pgsql.c 		add_assoc_bool_ex(&elem, "has default", sizeof("has default") - 1, !strcmp(PQgetvalue(pg_result,i,5), "t"));
pg_result        5577 ext/pgsql/pgsql.c 		add_assoc_long_ex(&elem, "array dims", sizeof("array dims") - 1, atoi(PQgetvalue(pg_result, i, 6)));
pg_result        5579 ext/pgsql/pgsql.c 		add_assoc_bool_ex(&elem, "is enum", sizeof("is enum") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "e"));
pg_result        5582 ext/pgsql/pgsql.c 			add_assoc_bool_ex(&elem, "is base", sizeof("is base") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "b"));
pg_result        5583 ext/pgsql/pgsql.c 			add_assoc_bool_ex(&elem, "is composite", sizeof("is composite") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "c"));
pg_result        5584 ext/pgsql/pgsql.c 			add_assoc_bool_ex(&elem, "is pesudo", sizeof("is pesudo") - 1, !strcmp(PQgetvalue(pg_result, i, 7), "p"));
pg_result        5586 ext/pgsql/pgsql.c 			add_assoc_string_ex(&elem, "description", sizeof("description") - 1, PQgetvalue(pg_result, i, 8));
pg_result        5589 ext/pgsql/pgsql.c 		name = PQgetvalue(pg_result,i,0);
pg_result        5592 ext/pgsql/pgsql.c 	PQclear(pg_result);
pg_result        6488 ext/pgsql/pgsql.c 		PGresult *pg_result;
pg_result        6490 ext/pgsql/pgsql.c 		pg_result = PQexec(pg_link, ZSTR_VAL(querystr->s));
pg_result        6491 ext/pgsql/pgsql.c 		if (PQresultStatus(pg_result) == expect) {
pg_result        6492 ext/pgsql/pgsql.c 			PQclear(pg_result);
pg_result        6495 ext/pgsql/pgsql.c 			php_error_docref(NULL, E_WARNING, "%s", PQresultErrorMessage(pg_result));
pg_result        6496 ext/pgsql/pgsql.c 			PQclear(pg_result);
pg_result        6666 ext/pgsql/pgsql.c 	PGresult *pg_result;
pg_result        6695 ext/pgsql/pgsql.c 		pg_result = PQexec(pg_link, ZSTR_VAL(sql));
pg_result        6697 ext/pgsql/pgsql.c 			PQclear(pg_result);
pg_result        6699 ext/pgsql/pgsql.c 			pg_result = PQexec(pg_link, ZSTR_VAL(sql));
pg_result        6703 ext/pgsql/pgsql.c 		if (pg_result) {
pg_result        6704 ext/pgsql/pgsql.c 			status = PQresultStatus(pg_result);
pg_result        6715 ext/pgsql/pgsql.c 				PQclear(pg_result);
pg_result        6720 ext/pgsql/pgsql.c 				if (pg_result) {
pg_result        6723 ext/pgsql/pgsql.c 					pgsql_handle->result = pg_result;
pg_result        6727 ext/pgsql/pgsql.c 					PQclear(pg_result);
pg_result        7005 ext/pgsql/pgsql.c PHP_PGSQL_API int php_pgsql_result2array(PGresult *pg_result, zval *ret_array)
pg_result        7014 ext/pgsql/pgsql.c 	if ((pg_numrows = PQntuples(pg_result)) <= 0) {
pg_result        7019 ext/pgsql/pgsql.c 		for (i = 0, num_fields = PQnfields(pg_result); i < num_fields; i++) {
pg_result        7020 ext/pgsql/pgsql.c 			if (PQgetisnull(pg_result, pg_row, i)) {
pg_result        7021 ext/pgsql/pgsql.c 				field_name = PQfname(pg_result, i);
pg_result        7024 ext/pgsql/pgsql.c 				char *element = PQgetvalue(pg_result, pg_row, i);
pg_result        7028 ext/pgsql/pgsql.c 					field_name = PQfname(pg_result, i);
pg_result        7046 ext/pgsql/pgsql.c 	PGresult *pg_result;
pg_result        7077 ext/pgsql/pgsql.c 	pg_result = PQexec(pg_link, ZSTR_VAL(querystr.s));
pg_result        7078 ext/pgsql/pgsql.c 	if (PQresultStatus(pg_result) == PGRES_TUPLES_OK) {
pg_result        7079 ext/pgsql/pgsql.c 		ret = php_pgsql_result2array(pg_result, ret_array);
pg_result        7083 ext/pgsql/pgsql.c 	PQclear(pg_result);
pg_result         222 ext/pgsql/php_pgsql.h PHP_PGSQL_API int php_pgsql_result2array(PGresult *pg_result, zval *ret_array);