Lines Matching refs:server
84 char *errmsg = PQerrorMessage(H->server); in _pdo_pgsql_error()
202 self->conn = H->server; in pdo_pgsql_create_lob_stream()
220 if (H->server) { in pgsql_handle_closer()
221 PQfinish(H->server); in pgsql_handle_closer()
222 H->server = NULL; in pgsql_handle_closer()
271 if (!emulate && PQprotocolVersion(H->server) > 2) { in pgsql_handle_preparer()
311 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
342 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter()
354 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
375 (void)PQexec(H->server, "SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
377 res = PQexec(H->server, "SELECT LASTVAL()"); in pdo_pgsql_last_insert_id()
382 res = PQexecParams(H->server, "SELECT CURRVAL($1)", 1, NULL, q, NULL, NULL, 0); in pdo_pgsql_last_insert_id()
391 (void)PQexec(H->server, "ROLLBACK TO SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
397 (void)PQexec(H->server, "RELEASE SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
425 if (PQprotocolVersion(H->server) >= 3) { /* PostgreSQL 7.4 or later */ in pdo_pgsql_get_attribute()
426 ZVAL_STRING(return_value, (char*)PQparameterStatus(H->server, "server_version")); in pdo_pgsql_get_attribute()
429 PGresult *res = PQexec(H->server, "SELECT VERSION()"); in pdo_pgsql_get_attribute()
441 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
475 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
482 (char*)PQparameterStatus(H->server, "client_encoding"), in pdo_pgsql_get_attribute()
483 (char*)PQparameterStatus(H->server, "is_superuser"), in pdo_pgsql_get_attribute()
484 (char*)PQparameterStatus(H->server, "session_authorization"), in pdo_pgsql_get_attribute()
485 (char*)PQparameterStatus(H->server, "DateStyle")); in pdo_pgsql_get_attribute()
502 if (PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
503 PQreset(H->server); in pdo_pgsql_check_liveness()
505 return (PQstatus(H->server) == CONNECTION_OK) ? SUCCESS : FAILURE; in pdo_pgsql_check_liveness()
515 return PQtransactionStatus(H->server) > PQTRANS_IDLE; in pgsql_handle_in_transaction()
524 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
599 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
602 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
610 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
633 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
644 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
650 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
710 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
713 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
720 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
730 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
741 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
747 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
803 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
813 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
819 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
826 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
849 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
889 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
899 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
905 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
914 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
927 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
953 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
1002 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
1045 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1094 PQconsumeInput(H->server); in PHP_METHOD()
1095 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1098 php_pollfd_for_ms(PQsocket(H->server), PHP_POLLREADABLE, (int)ms_timeout); in PHP_METHOD()
1100 PQconsumeInput(H->server); in PHP_METHOD()
1101 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1140 RETURN_LONG(PQbackendPID(H->server)); in PHP_METHOD()
1245 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1256 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1261 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()