Lines Matching refs:server

63 		einfo->errcode = mysql_errno(H->server);  in _pdo_mysql_error()
76 if (mysql_more_results(H->server)) { in _pdo_mysql_error()
100 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent); in _pdo_mysql_error()
111 strcpy(*pdo_err, mysql_sqlstate(H->server)); in _pdo_mysql_error()
155 if (H->server) { in mysql_handle_closer()
156 mysql_close(H->server); in mysql_handle_closer()
157 H->server = NULL; in mysql_handle_closer()
190 server_version = mysql_get_server_version(H->server); in mysql_handle_preparer()
206 if (!(S->stmt = mysql_stmt_init(H->server))) { in mysql_handle_preparer()
220 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer()
265 if (mysql_real_query(H->server, ZSTR_VAL(sql), ZSTR_LEN(sql))) { in mysql_handle_doer()
269 my_ulonglong c = mysql_affected_rows(H->server); in mysql_handle_doer()
277 while (mysql_more_results(H->server)) { in mysql_handle_doer()
278 if (mysql_next_result(H->server)) { in mysql_handle_doer()
282 result = mysql_store_result(H->server); in mysql_handle_doer()
298 PDO_DBG_RETURN(zend_u64_to_str(mysql_insert_id(H->server))); in pdo_mysql_last_insert_id()
338 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 2, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
344 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 8, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
349 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
384 if (mysql_commit(((pdo_mysql_db_handle *)dbh->driver_data)->server)) { in mysql_handle_commit()
397 if (mysql_rollback(((pdo_mysql_db_handle *)dbh->driver_data)->server)) { in mysql_handle_rollback()
411 if (mysql_autocommit(((pdo_mysql_db_handle *)dbh->driver_data)->server, dbh->auto_commit)) { in mysql_handle_autocommit()
480 …if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_nativ… in pdo_mysql_set_attribute()
521 ZVAL_STRING(return_value, (char *)mysql_get_server_info(H->server));
525 ZVAL_STRING(return_value, (char *)mysql_get_host_info(H->server));
531 if (mysqlnd_stat(H->server, &tmp) == PASS) {
535 if ((tmp = (char *)mysql_stat(H->server))) {
577 local_infile_directory = H->server->data->options->local_infile_directory;
579 mysql_get_option(H->server, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, &local_infile_directory);
610 if (mysql_ping(H->server)) {
625 if (H->server) {
626 mysqlnd_end_psession(H->server);
643 PDO_DBG_RETURN((pdo_mysql_get_server_status(H->server) & SERVER_STATUS_IN_TRANS) != 0);
727 if (!(H->server = pdo_mysql_init(dbh->is_persistent))) {
733 mysqlnd_restart_psession(H->server);
784 if (mysql_options(H->server, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout)) {
801 …if (mysql_options(H->server, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, (const char *)ZSTR_VAL(local_infile_di…
816 mysql_options(H->server, MYSQL_OPT_RECONNECT, (const char*)&reconnect);
821 if (mysql_options(H->server, MYSQL_INIT_COMMAND, (const char *)ZSTR_VAL(init_cmd))) {
831 if (mysql_options(H->server, MYSQL_READ_DEFAULT_FILE, (const char *)ZSTR_VAL(default_file))) {
841 if (mysql_options(H->server, MYSQL_READ_DEFAULT_GROUP, (const char *)ZSTR_VAL(default_group))) {
851 if (mysql_options(H->server, MYSQL_OPT_COMPRESS, 0)) {
864 mysql_ssl_set(H->server,
891 if (mysql_options(H->server, MYSQL_SERVER_PUBLIC_KEY, ZSTR_VAL(public_key))) {
916 if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) {
923 …if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_nativ…
929 if (vars[0].optval && mysql_options(H->server, MYSQL_SET_CHARSET_NAME, vars[0].optval)) {
966 …if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_le…
969 …if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, c…