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()
332 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 2, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
338 …quotedlen = mysql_real_escape_string_quote(H->server, quoted + 1, ZSTR_VAL(unquoted), ZSTR_LEN(unq… in mysql_handle_quoter()
373 if (mysql_commit(((pdo_mysql_db_handle *)dbh->driver_data)->server)) { in mysql_handle_commit()
386 if (mysql_rollback(((pdo_mysql_db_handle *)dbh->driver_data)->server)) { in mysql_handle_rollback()
400 if (mysql_autocommit(((pdo_mysql_db_handle *)dbh->driver_data)->server, dbh->auto_commit)) { in mysql_handle_autocommit()
469 …if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_nativ… in pdo_mysql_set_attribute()
510 ZVAL_STRING(return_value, (char *)mysql_get_server_info(H->server));
514 ZVAL_STRING(return_value, (char *)mysql_get_host_info(H->server));
520 if (mysqlnd_stat(H->server, &tmp) == PASS) {
524 if ((tmp = (char *)mysql_stat(H->server))) {
566 local_infile_directory = H->server->data->options->local_infile_directory;
568 mysql_get_option(H->server, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, &local_infile_directory);
595 if (mysql_ping(H->server)) {
610 if (H->server) {
611 mysqlnd_end_psession(H->server);
628 PDO_DBG_RETURN((pdo_mysql_get_server_status(H->server) & SERVER_STATUS_IN_TRANS) != 0);
711 if (!(H->server = pdo_mysql_init(dbh->is_persistent))) {
717 mysqlnd_restart_psession(H->server);
768 if (mysql_options(H->server, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout)) {
785 …if (mysql_options(H->server, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, (const char *)ZSTR_VAL(local_infile_di…
800 mysql_options(H->server, MYSQL_OPT_RECONNECT, (const char*)&reconnect);
805 if (mysql_options(H->server, MYSQL_INIT_COMMAND, (const char *)ZSTR_VAL(init_cmd))) {
815 if (mysql_options(H->server, MYSQL_READ_DEFAULT_FILE, (const char *)ZSTR_VAL(default_file))) {
825 if (mysql_options(H->server, MYSQL_READ_DEFAULT_GROUP, (const char *)ZSTR_VAL(default_group))) {
835 if (mysql_options(H->server, MYSQL_OPT_COMPRESS, 0)) {
848 mysql_ssl_set(H->server,
875 if (mysql_options(H->server, MYSQL_SERVER_PUBLIC_KEY, ZSTR_VAL(public_key))) {
900 if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) {
907 …if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_nativ…
913 if (vars[0].optval && mysql_options(H->server, MYSQL_SET_CHARSET_NAME, vars[0].optval)) {
950 …if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_le…
953 …if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, c…