Lines Matching refs:server

84 	char *errmsg = PQerrorMessage(H->server);  in _pdo_pgsql_error()
199 self->conn = H->server; in pdo_pgsql_create_lob_stream()
217 if (H->server) { in pgsql_handle_closer()
218 PQfinish(H->server); in pgsql_handle_closer()
219 H->server = NULL; in pgsql_handle_closer()
272 if (!emulate && PQprotocolVersion(H->server) > 2) { in pgsql_handle_preparer()
312 if (!(res = PQexec(H->server, sql))) { in pgsql_handle_doer()
339 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len); in pgsql_handle_quoter()
351 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, (size_t)unquotedlen, NULL); in pgsql_handle_quoter()
372 (void)PQexec(H->server, "SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
374 res = PQexec(H->server, "SELECT LASTVAL()"); in pdo_pgsql_last_insert_id()
379 res = PQexecParams(H->server, "SELECT CURRVAL($1)", 1, NULL, q, NULL, NULL, 0); in pdo_pgsql_last_insert_id()
388 (void)PQexec(H->server, "ROLLBACK TO SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
395 (void)PQexec(H->server, "RELEASE SAVEPOINT _php_lastid_savepoint"); in pdo_pgsql_last_insert_id()
428 if (PQprotocolVersion(H->server) >= 3) { /* PostgreSQL 7.4 or later */ in pdo_pgsql_get_attribute()
429 ZVAL_STRING(return_value, (char*)PQparameterStatus(H->server, "server_version"), 1); in pdo_pgsql_get_attribute()
432 PGresult *res = PQexec(H->server, "SELECT VERSION()"); in pdo_pgsql_get_attribute()
444 switch (PQstatus(H->server)) { in pdo_pgsql_get_attribute()
478 int spid = PQbackendPID(H->server); in pdo_pgsql_get_attribute()
483 (char*)PQparameterStatus(H->server, "client_encoding"), in pdo_pgsql_get_attribute()
484 (char*)PQparameterStatus(H->server, "is_superuser"), in pdo_pgsql_get_attribute()
485 (char*)PQparameterStatus(H->server, "session_authorization"), in pdo_pgsql_get_attribute()
486 (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()
635 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
647 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
653 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
713 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
716 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
723 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
733 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
744 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
750 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
806 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
816 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
822 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
829 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
852 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
892 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
902 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
908 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
917 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
930 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
956 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
1005 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
1048 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1092 PQconsumeInput(H->server); in PHP_METHOD()
1093 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1096 php_pollfd_for_ms(PQsocket(H->server), PHP_POLLREADABLE, ms_timeout); in PHP_METHOD()
1098 PQconsumeInput(H->server); in PHP_METHOD()
1099 pgsql_notify = PQnotifies(H->server); in PHP_METHOD()
1138 RETURN_LONG(PQbackendPID(H->server)); in PHP_METHOD()
1246 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1257 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1262 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()