Lines Matching refs:server
68 char *errmsg = PQerrorMessage(H->server); in _pdo_pgsql_error()
180 self->conn = H->server; in pdo_pgsql_create_lob_stream()
198 if (H->server) { in pgsql_handle_closer()
199 PQfinish(H->server); in pgsql_handle_closer()
200 H->server = NULL; in pgsql_handle_closer()
252 if (!emulate && PQprotocolVersion(H->server) > 2) { in pgsql_handle_preparer()
290 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
318 escaped = PQescapeByteaConn(H->server, unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter()
336 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
360 res = PQexecParams(H->server, "SELECT CURRVAL($1)", 1, NULL, q, NULL, NULL, 0); in pdo_pgsql_last_insert_id()
387 if (PQprotocolVersion(H->server) >= 3) { /* PostgreSQL 7.4 or later */ in pdo_pgsql_get_attribute()
388 ZVAL_STRING(return_value, (char*)PQparameterStatus(H->server, "server_version"), 1); in pdo_pgsql_get_attribute()
391 PGresult *res = PQexec(H->server, "SELECT VERSION()"); in pdo_pgsql_get_attribute()
403 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
437 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
442 (char*)PQparameterStatus(H->server, "client_encoding"), in pdo_pgsql_get_attribute()
443 (char*)PQparameterStatus(H->server, "is_superuser"), in pdo_pgsql_get_attribute()
444 (char*)PQparameterStatus(H->server, "session_authorization"), in pdo_pgsql_get_attribute()
445 (char*)PQparameterStatus(H->server, "DateStyle")); in pdo_pgsql_get_attribute()
461 if (PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
462 PQreset(H->server); in pdo_pgsql_check_liveness()
464 return (PQstatus(H->server) == CONNECTION_OK) ? SUCCESS : FAILURE; in pdo_pgsql_check_liveness()
474 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
539 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
542 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
550 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
575 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
586 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
591 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
646 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
649 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
656 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
666 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
676 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
681 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
733 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
742 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
748 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
755 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
776 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
814 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
823 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
829 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
838 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
850 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
874 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
921 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
961 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1064 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1068 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1073 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()