Home
last modified time | relevance | path

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

/php-src/ext/pgsql/
H A Dpgsql.c3394 zend_string *zquery = zend_string_alloc(ZSTR_LEN(tmp) + 1, false); in pgsql_copy_from_query() local
3395 memcpy(ZSTR_VAL(zquery), ZSTR_VAL(tmp), ZSTR_LEN(tmp) + 1); in pgsql_copy_from_query()
3396 ZSTR_LEN(zquery) = ZSTR_LEN(tmp); in pgsql_copy_from_query()
3397 if (ZSTR_LEN(tmp) > 0 && ZSTR_VAL(zquery)[ZSTR_LEN(tmp)] != '\n') { in pgsql_copy_from_query()
3398 ZSTR_VAL(zquery)[ZSTR_LEN(tmp)] = '\n'; in pgsql_copy_from_query() local
3399 ZSTR_LEN(zquery) ++; in pgsql_copy_from_query()
3401 if (PQputCopyData(pgsql, ZSTR_VAL(zquery), ZSTR_LEN(zquery)) != 1) { in pgsql_copy_from_query()
3402 zend_string_release_ex(zquery, false); in pgsql_copy_from_query()
3406 zend_string_release_ex(zquery, false); in pgsql_copy_from_query()

Completed in 14 milliseconds