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, (unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len); in pgsql_handle_quoter()
336 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, (size_t)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()
506 return PQtransactionStatus(H->server); in pgsql_handle_in_transaction()
548 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
551 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
559 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
584 if (PQputCopyData(H->server, query, query_len) != 1) { in PHP_METHOD()
595 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
600 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
655 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
658 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
665 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
675 if (PQputCopyData(H->server, buf, line_len) != 1) { in PHP_METHOD()
685 if (PQputCopyEnd(H->server, NULL) != 1) { in PHP_METHOD()
690 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
742 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
751 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
757 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
764 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
785 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
823 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
832 pgsql_result = PQexec(H->server, query); in PHP_METHOD()
838 status = (ExecStatusType) PQstatus(H->server); in PHP_METHOD()
847 int ret = PQgetCopyData(H->server, &csv, 0); in PHP_METHOD()
859 while ((pgsql_result = PQgetResult(H->server))) { in PHP_METHOD()
883 lfd = lo_creat(H->server, INV_READ|INV_WRITE); in PHP_METHOD()
930 lfd = lo_open(H->server, oid, mode); in PHP_METHOD()
970 if (1 == lo_unlink(H->server, oid)) { in PHP_METHOD()
1098 H->server = PQconnectdb(conn_str); in pdo_pgsql_handle_factory()
1105 if (PQstatus(H->server) != CONNECTION_OK) { in pdo_pgsql_handle_factory()
1110 PQsetNoticeProcessor(H->server, (void(*)(void*,const char*))_pdo_pgsql_notice, (void *)&dbh); in pdo_pgsql_handle_factory()