Home
last modified time | relevance | path

Searched refs:zquery (Results 1 – 1 of 1) sorted by relevance

/php-src/ext/pgsql/
H A Dpgsql.c3367 zend_string *zquery = zend_string_alloc(ZSTR_LEN(tmp) + 1, false); in pgsql_copy_from_query() local
3368 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() local
3372 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 20 milliseconds