Lines Matching refs:pgsql_result

982 	PGresult *pgsql_result;  in PHP_FUNCTION()  local
1006 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1007 PQclear(pgsql_result); in PHP_FUNCTION()
1013 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1015 PQclear(pgsql_result); in PHP_FUNCTION()
1017 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1020 if (pgsql_result) { in PHP_FUNCTION()
1021 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1032 PQclear(pgsql_result); in PHP_FUNCTION()
1037 if (pgsql_result) { in PHP_FUNCTION()
1040 pg_result->result = pgsql_result; in PHP_FUNCTION()
1044 PQclear(pgsql_result); in PHP_FUNCTION()
1080 PGresult *pgsql_result; in PHP_FUNCTION() local
1105 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1106 PQclear(pgsql_result); in PHP_FUNCTION()
1135 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1138 PQclear(pgsql_result); in PHP_FUNCTION()
1140 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1144 if (pgsql_result) { in PHP_FUNCTION()
1145 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1158 PQclear(pgsql_result); in PHP_FUNCTION()
1163 if (pgsql_result) { in PHP_FUNCTION()
1166 pg_result->result = pgsql_result; in PHP_FUNCTION()
1170 PQclear(pgsql_result); in PHP_FUNCTION()
1188 PGresult *pgsql_result; in PHP_FUNCTION() local
1213 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1214 PQclear(pgsql_result); in PHP_FUNCTION()
1220 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
1222 PQclear(pgsql_result); in PHP_FUNCTION()
1224 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
1227 if (pgsql_result) { in PHP_FUNCTION()
1228 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1239 PQclear(pgsql_result); in PHP_FUNCTION()
1244 if (pgsql_result) { in PHP_FUNCTION()
1247 pg_result->result = pgsql_result; in PHP_FUNCTION()
1251 PQclear(pgsql_result); in PHP_FUNCTION()
1272 PGresult *pgsql_result; in PHP_FUNCTION() local
1297 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
1298 PQclear(pgsql_result); in PHP_FUNCTION()
1326 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1329 PQclear(pgsql_result); in PHP_FUNCTION()
1331 pgsql_result = PQexecPrepared(pgsql, stmtname, num_params, in PHP_FUNCTION()
1335 if (pgsql_result) { in PHP_FUNCTION()
1336 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
1349 PQclear(pgsql_result); in PHP_FUNCTION()
1354 if (pgsql_result) { in PHP_FUNCTION()
1357 pg_result->result = pgsql_result; in PHP_FUNCTION()
1361 PQclear(pgsql_result); in PHP_FUNCTION()
1377 PGresult *pgsql_result; in php_pgsql_get_result_info() local
1388 pgsql_result = pg_result->result; in php_pgsql_get_result_info()
1392 RETVAL_LONG(PQntuples(pgsql_result)); in php_pgsql_get_result_info()
1395 RETVAL_LONG(PQnfields(pgsql_result)); in php_pgsql_get_result_info()
1398 RETVAL_LONG(atoi(PQcmdTuples(pgsql_result))); in php_pgsql_get_result_info()
1641 PGresult *pgsql_result; in php_pgsql_get_field_info() local
1658 pgsql_result = pg_result->result; in php_pgsql_get_field_info()
1660 if (field >= PQnfields(pgsql_result)) { in php_pgsql_get_field_info()
1667 RETURN_STRING(PQfname(pgsql_result, (int)field)); in php_pgsql_get_field_info()
1670 RETURN_LONG(PQfsize(pgsql_result, (int)field)); in php_pgsql_get_field_info()
1673 …char *name = get_field_name(pg_result->conn, PQftype(pgsql_result, (int)field), &EG(regular_list)); in php_pgsql_get_field_info()
1680 oid = PQftype(pgsql_result, (int)field); in php_pgsql_get_field_info()
1722 PGresult *pgsql_result; in PHP_FUNCTION() local
1733 pgsql_result = pg_result->result; in PHP_FUNCTION()
1735 RETURN_LONG(PQfnumber(pgsql_result, field)); in PHP_FUNCTION()
1768 PGresult *pgsql_result; in PHP_FUNCTION() local
1789 pgsql_result = pg_result->result; in PHP_FUNCTION()
1795 if (pgsql_row >= PQntuples(pgsql_result)) { in PHP_FUNCTION()
1804 if (row >= PQntuples(pgsql_result)) { in PHP_FUNCTION()
1812 field_offset = field_arg_to_offset(pgsql_result, field_name, field_offset, argc); in PHP_FUNCTION()
1817 if (PQgetisnull(pgsql_result, pgsql_row, field_offset)) { in PHP_FUNCTION()
1820 RETVAL_STRINGL(PQgetvalue(pgsql_result, pgsql_row, field_offset), in PHP_FUNCTION()
1821 PQgetlength(pgsql_result, pgsql_row, field_offset)); in PHP_FUNCTION()
1830 PGresult *pgsql_result; in php_pgsql_fetch_hash() local
1867 pgsql_result = pg_result->result; in php_pgsql_fetch_hash()
1870 if (row >= PQntuples(pgsql_result)) { in php_pgsql_fetch_hash()
1880 if (pgsql_row < 0 || pgsql_row >= PQntuples(pgsql_result)) { in php_pgsql_fetch_hash()
1887 for (i = 0, num_fields = PQnfields(pgsql_result); i < num_fields; i++) { in php_pgsql_fetch_hash()
1888 if (PQgetisnull(pgsql_result, pgsql_row, i)) { in php_pgsql_fetch_hash()
1893 field_name = PQfname(pgsql_result, i); in php_pgsql_fetch_hash()
1897 char *element = PQgetvalue(pgsql_result, pgsql_row, i); in php_pgsql_fetch_hash()
1906 field_name = PQfname(pgsql_result, i); in php_pgsql_fetch_hash()
2004 PGresult *pgsql_result; in PHP_FUNCTION() local
2020 pgsql_result = pg_result->result; in PHP_FUNCTION()
2022 php_pgsql_result2array(pgsql_result, return_value, result_type); in PHP_FUNCTION()
2030 PGresult *pgsql_result; in PHP_FUNCTION() local
2049 pgsql_result = pg_result->result; in PHP_FUNCTION()
2051 num_fields = PQnfields(pgsql_result); in PHP_FUNCTION()
2059 if ((pg_numrows = PQntuples(pgsql_result)) <= 0) { in PHP_FUNCTION()
2064 if (PQgetisnull(pgsql_result, pg_row, (int)colno)) { in PHP_FUNCTION()
2067 add_next_index_string(return_value, PQgetvalue(pgsql_result, pg_row, (int)colno)); in PHP_FUNCTION()
2107 PGresult *pgsql_result; in php_pgsql_data_info() local
2128 pgsql_result = pg_result->result; in php_pgsql_data_info()
2134 if (pgsql_row < 0 || pgsql_row >= PQntuples(pgsql_result)) { in php_pgsql_data_info()
2142 if (row >= PQntuples(pgsql_result)) { in php_pgsql_data_info()
2150 field_offset = field_arg_to_offset(pgsql_result, field_name, field_offset, argc); in php_pgsql_data_info()
2157 RETVAL_LONG(PQgetlength(pgsql_result, pgsql_row, field_offset)); in php_pgsql_data_info()
2160 RETVAL_LONG(PQgetisnull(pgsql_result, pgsql_row, field_offset)); in php_pgsql_data_info()
2204 PGresult *pgsql_result; in PHP_FUNCTION() local
2216 pgsql_result = pg_result->result; in PHP_FUNCTION()
2217 oid = PQoidValue(pgsql_result); in PHP_FUNCTION()
3093 PGresult *pgsql_result; in PHP_FUNCTION() local
3117 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3118 PQclear(pgsql_result); in PHP_FUNCTION()
3120 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3126 if (pgsql_result) { in PHP_FUNCTION()
3127 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
3134 if (pgsql_result) { in PHP_FUNCTION()
3137 PQclear(pgsql_result); in PHP_FUNCTION()
3157 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3158 PQclear(pgsql_result); in PHP_FUNCTION()
3161 PQclear(pgsql_result); in PHP_FUNCTION()
3166 PQclear(pgsql_result); in PHP_FUNCTION()
3184 PGresult *pgsql_result; in PHP_FUNCTION() local
3206 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3207 PQclear(pgsql_result); in PHP_FUNCTION()
3209 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3216 if (pgsql_result) { in PHP_FUNCTION()
3217 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
3224 if (pgsql_result) { in PHP_FUNCTION()
3226 PQclear(pgsql_result); in PHP_FUNCTION()
3251 while ((pgsql_result = PQgetResult(pgsql))) { in PHP_FUNCTION()
3252 if (PGRES_COMMAND_OK != PQresultStatus(pgsql_result)) { in PHP_FUNCTION()
3256 PQclear(pgsql_result); in PHP_FUNCTION()
3262 PQclear(pgsql_result); in PHP_FUNCTION()
3268 PQclear(pgsql_result); in PHP_FUNCTION()
3436 PGresult *pgsql_result; in PHP_FUNCTION() local
3448 pgsql_result = pg_result->result; in PHP_FUNCTION()
3449 if (!pgsql_result) { in PHP_FUNCTION()
3452 err = (char *)PQresultErrorMessage(pgsql_result); in PHP_FUNCTION()
3462 PGresult *pgsql_result; in PHP_FUNCTION() local
3474 pgsql_result = pg_result->result; in PHP_FUNCTION()
3475 if (!pgsql_result) { in PHP_FUNCTION()
3488 field = (char *)PQresultErrorField(pgsql_result, (int)fieldcode); in PHP_FUNCTION()
3587 PGresult *pgsql_result; in php_pgsql_do_async() local
3608 while ((pgsql_result = PQgetResult(pgsql))) { in php_pgsql_do_async()
3609 PQclear(pgsql_result); in php_pgsql_do_async()
3981 PGresult *pgsql_result; in PHP_FUNCTION() local
3992 pgsql_result = PQgetResult(pgsql); in PHP_FUNCTION()
3993 if (!pgsql_result) { in PHP_FUNCTION()
3999 pg_result->result = pgsql_result; in PHP_FUNCTION()
4011 PGresult *pgsql_result; in PHP_FUNCTION() local
4022 pgsql_result = pg_result->result; in PHP_FUNCTION()
4024 status = PQresultStatus(pgsql_result); in PHP_FUNCTION()
4028 RETURN_STRING(PQcmdStatus(pgsql_result)); in PHP_FUNCTION()