Lines Matching refs:server

80 	char *errmsg = PQerrorMessage(H->server);  in _pdo_pgsql_error()
192 self->conn = H->server; in pdo_pgsql_create_lob_stream()
210 if (H->server) { in pgsql_handle_closer()
211 PQfinish(H->server); in pgsql_handle_closer()
212 H->server = NULL; in pgsql_handle_closer()
264 if (!emulate && PQprotocolVersion(H->server) > 2) { in pgsql_handle_preparer()
302 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
330 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len); in pgsql_handle_quoter()
348 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, (size_t)unquotedlen, NULL); in pgsql_handle_quoter()
372 res = PQexecParams(H->server, "SELECT CURRVAL($1)", 1, NULL, q, NULL, NULL, 0); in pdo_pgsql_last_insert_id()
407 if (PQprotocolVersion(H->server) >= 3) { /* PostgreSQL 7.4 or later */ in pdo_pgsql_get_attribute()
408 ZVAL_STRING(return_value, (char*)PQparameterStatus(H->server, "server_version"), 1); in pdo_pgsql_get_attribute()
411 PGresult *res = PQexec(H->server, "SELECT VERSION()"); in pdo_pgsql_get_attribute()
423 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
457 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
462 (char*)PQparameterStatus(H->server, "client_encoding"), in pdo_pgsql_get_attribute()
463 (char*)PQparameterStatus(H->server, "is_superuser"), in pdo_pgsql_get_attribute()
464 (char*)PQparameterStatus(H->server, "session_authorization"), in pdo_pgsql_get_attribute()
465 (char*)PQparameterStatus(H->server, "DateStyle")); in pdo_pgsql_get_attribute()
481 if (PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
482 PQreset(H->server); in pdo_pgsql_check_liveness()
484 return (PQstatus(H->server) == CONNECTION_OK) ? SUCCESS : FAILURE; in pdo_pgsql_check_liveness()
494 return PQtransactionStatus(H->server) > PQTRANS_IDLE; in pgsql_handle_in_transaction()
503 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
576 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
579 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
587 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
612 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
623 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
628 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
683 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
686 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
693 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
703 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
713 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
718 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
770 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
779 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
785 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
792 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
813 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
851 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
860 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
866 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
875 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
887 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
911 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
958 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
998 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1107 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1118 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1123 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()