Lines Matching refs:server

82 	char *errmsg = PQerrorMessage(H->server);  in _pdo_pgsql_error()
200 self->conn = H->server; in pdo_pgsql_create_lob_stream()
218 if (H->server) { in pgsql_handle_closer()
219 PQfinish(H->server); in pgsql_handle_closer()
220 H->server = NULL; in pgsql_handle_closer()
269 if (!emulate && PQprotocolVersion(H->server) > 2) { in pgsql_handle_preparer()
309 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
340 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, unquotedlen, &tmp_len); in pgsql_handle_quoter()
352 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
368 res = PQexec(H->server, "SELECT LASTVAL()"); in pdo_pgsql_last_insert_id()
373 res = PQexecParams(H->server, "SELECT CURRVAL($1)", 1, NULL, q, NULL, NULL, 0); in pdo_pgsql_last_insert_id()
409 if (PQprotocolVersion(H->server) >= 3) { /* PostgreSQL 7.4 or later */ in pdo_pgsql_get_attribute()
410 ZVAL_STRING(return_value, (char*)PQparameterStatus(H->server, "server_version")); in pdo_pgsql_get_attribute()
413 PGresult *res = PQexec(H->server, "SELECT VERSION()"); in pdo_pgsql_get_attribute()
425 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
459 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
466 (char*)PQparameterStatus(H->server, "client_encoding"), in pdo_pgsql_get_attribute()
467 (char*)PQparameterStatus(H->server, "is_superuser"), in pdo_pgsql_get_attribute()
468 (char*)PQparameterStatus(H->server, "session_authorization"), in pdo_pgsql_get_attribute()
469 (char*)PQparameterStatus(H->server, "DateStyle")); in pdo_pgsql_get_attribute()
486 if (PQstatus(H->server) == CONNECTION_BAD) { in pdo_pgsql_check_liveness()
487 PQreset(H->server); in pdo_pgsql_check_liveness()
489 return (PQstatus(H->server) == CONNECTION_OK) ? SUCCESS : FAILURE; in pdo_pgsql_check_liveness()
499 return PQtransactionStatus(H->server) > PQTRANS_IDLE; in pgsql_handle_in_transaction()
508 res = PQexec(H->server, cmd); in pdo_pgsql_transaction_cmd()
583 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
586 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
594 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
617 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
628 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
634 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
694 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
697 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
704 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
714 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
725 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
731 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
787 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
797 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
803 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
810 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
833 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
873 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
883 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
889 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
898 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
911 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
937 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
986 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
1029 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1078 PQconsumeInput(H->server); in PHP_METHOD()
1079 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1082 php_pollfd_for_ms(PQsocket(H->server), PHP_POLLREADABLE, (int)ms_timeout); in PHP_METHOD()
1084 PQconsumeInput(H->server); in PHP_METHOD()
1085 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1124 RETURN_LONG(PQbackendPID(H->server)); in PHP_METHOD()
1229 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1240 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1245 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()