Searched refs:zquery (Results 1 – 1 of 1) sorted by relevance
3367 zend_string *zquery = zend_string_alloc(ZSTR_LEN(tmp) + 1, false); in pgsql_copy_from_query() local3368 memcpy(ZSTR_VAL(zquery), ZSTR_VAL(tmp), ZSTR_LEN(tmp) + 1); in pgsql_copy_from_query()3369 ZSTR_LEN(zquery) = ZSTR_LEN(tmp); in pgsql_copy_from_query()3370 if (ZSTR_LEN(tmp) > 0 && ZSTR_VAL(zquery)[ZSTR_LEN(tmp)] != '\n') { in pgsql_copy_from_query()3371 ZSTR_VAL(zquery)[ZSTR_LEN(tmp)] = '\n'; in pgsql_copy_from_query() local3372 ZSTR_LEN(zquery) ++; in pgsql_copy_from_query()3374 if (PQputCopyData(pgsql, ZSTR_VAL(zquery), ZSTR_LEN(zquery)) != 1) { in pgsql_copy_from_query()3375 zend_string_release_ex(zquery, false); in pgsql_copy_from_query()3379 zend_string_release_ex(zquery, false); in pgsql_copy_from_query()
Completed in 15 milliseconds