Lines Matching refs:query
976 char *query; in PHP_FUNCTION() local
986 if (zend_parse_parameters(argc, "s", &query, &query_len) == FAILURE) { in PHP_FUNCTION()
992 if (zend_parse_parameters(argc, "rs", &pgsql_link, &query, &query_len) == FAILURE) { in PHP_FUNCTION()
1013 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1017 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
1072 char *query; in PHP_FUNCTION() local
1085 if (zend_parse_parameters(argc, "sa", &query, &query_len, &pv_param_arr) == FAILURE) { in PHP_FUNCTION()
1091 …if (zend_parse_parameters(argc, "rsa", &pgsql_link, &query, &query_len, &pv_param_arr) == FAILURE)… in PHP_FUNCTION()
1135 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1140 pgsql_result = PQexecParams(pgsql, query, num_params, in PHP_FUNCTION()
1182 char *query, *stmtname; in PHP_FUNCTION() local
1193 if (zend_parse_parameters(argc, "ss", &stmtname, &stmtname_len, &query, &query_len) == FAILURE) { in PHP_FUNCTION()
1199 …if (zend_parse_parameters(argc, "rss", &pgsql_link, &stmtname, &stmtname_len, &query, &query_len) … in PHP_FUNCTION()
1220 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
1224 pgsql_result = PQprepare(pgsql, stmtname, query, 0, NULL); in PHP_FUNCTION()
3052 char *query; in PHP_FUNCTION() local
3060 if (zend_parse_parameters(argc, "s", &query, &query_len) == FAILURE) { in PHP_FUNCTION()
3066 if (zend_parse_parameters(argc, "rs", &pgsql_link, &query, &query_len) == FAILURE) { in PHP_FUNCTION()
3076 result = PQputline(pgsql, query); in PHP_FUNCTION()
3091 char *query; in PHP_FUNCTION() local
3115 …spprintf(&query, 0, "COPY %s TO STDOUT DELIMITER E'%c' NULL AS E'%s'", table_name, *pg_delim, pg_n… in PHP_FUNCTION()
3120 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3124 efree(query); in PHP_FUNCTION()
3182 char *query; in PHP_FUNCTION() local
3205 …spprintf(&query, 0, "COPY %s FROM STDIN DELIMITER E'%c' NULL AS E'%s'", table_name, *pg_delim, pg_… in PHP_FUNCTION()
3209 pgsql_result = PQexec(pgsql, query); in PHP_FUNCTION()
3214 efree(query); in PHP_FUNCTION()
3232 query = (char *)emalloc(ZSTR_LEN(tmp) + 2); in PHP_FUNCTION()
3233 strlcpy(query, ZSTR_VAL(tmp), ZSTR_LEN(tmp) + 2); in PHP_FUNCTION()
3234 if (ZSTR_LEN(tmp) > 0 && *(query + ZSTR_LEN(tmp) - 1) != '\n') { in PHP_FUNCTION()
3235 strlcat(query, "\n", ZSTR_LEN(tmp) + 2); in PHP_FUNCTION()
3237 if (PQputCopyData(pgsql, query, (int)strlen(query)) != 1) { in PHP_FUNCTION()
3238 efree(query); in PHP_FUNCTION()
3243 efree(query); in PHP_FUNCTION()
3650 char *query; in PHP_FUNCTION() local
3656 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &pgsql_link, &query, &len) == FAILURE) { in PHP_FUNCTION()
3677 if (!PQsendQuery(pgsql, query)) { in PHP_FUNCTION()
3682 if (!PQsendQuery(pgsql, query)) { in PHP_FUNCTION()
3686 if (!PQsendQuery(pgsql, query)) { in PHP_FUNCTION()
3721 char *query; in PHP_FUNCTION() local
3727 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsa", &pgsql_link, &query, &query_len, &pv_param_arr) … in PHP_FUNCTION()
3768 …if (PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0)… in PHP_FUNCTION()
3777 …if (!PQsendQueryParams(pgsql, query, num_params, NULL, (const char * const *)params, NULL, NULL, 0… in PHP_FUNCTION()
3814 char *query, *stmtname; in PHP_FUNCTION() local
3820 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rss", &pgsql_link, &stmtname, &stmtname_len, &query, &… in PHP_FUNCTION()
3840 if (!PQsendPrepare(pgsql, stmtname, query, 0, NULL)) { in PHP_FUNCTION()
3847 if (!PQsendPrepare(pgsql, stmtname, query, 0, NULL)) { in PHP_FUNCTION()