Lines Matching refs:server
67 einfo->errcode = mysql_errno(H->server); in _pdo_mysql_error()
93 einfo->errmsg = pestrdup(mysql_error(H->server), dbh->is_persistent); in _pdo_mysql_error()
103 strcpy(*pdo_err, mysql_sqlstate(H->server)); in _pdo_mysql_error()
148 if (H->server) { in mysql_handle_closer()
149 mysql_close(H->server); in mysql_handle_closer()
183 server_version = mysql_get_server_version(H->server); in mysql_handle_preparer()
200 if (!(S->stmt = mysql_stmt_init(H->server))) { in mysql_handle_preparer()
211 if (mysql_errno(H->server) == 1295) { in mysql_handle_preparer()
261 if (mysql_real_query(H->server, sql, sql_len)) { in mysql_handle_doer()
265 my_ulonglong c = mysql_affected_rows(H->server); in mysql_handle_doer()
273 while (mysql_more_results(H->server)) { in mysql_handle_doer()
274 if (mysql_next_result(H->server)) { in mysql_handle_doer()
277 result = mysql_store_result(H->server); in mysql_handle_doer()
292 char *id = php_pdo_int64_to_str(mysql_insert_id(H->server)); in pdo_mysql_last_insert_id()
321 *quotedlen = mysql_real_escape_string(H->server, *quoted + 2, unquoted, unquotedlen); in mysql_handle_quoter()
327 *quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen); in mysql_handle_quoter()
353 PDO_DBG_RETURN(0 == mysql_commit(((pdo_mysql_db_handle *)dbh->driver_data)->server)); in mysql_handle_commit()
366 PDO_DBG_RETURN(0 <= mysql_rollback(((pdo_mysql_db_handle *)dbh->driver_data)->server)); in mysql_handle_rollback()
380 …PDO_DBG_RETURN(0 <= mysql_autocommit(((pdo_mysql_db_handle *)dbh->driver_data)->server, dbh->auto_… in mysql_handle_autocommit()
460 ZVAL_STRING(return_value, (char *)mysql_get_server_info(H->server));
464 ZVAL_STRING(return_value, (char *)mysql_get_host_info(H->server));
470 if (mysqlnd_stat(H->server, &tmp) == PASS) {
474 if ((tmp = (char *)mysql_stat(H->server))) {
509 (H->server->data->options->flags & CLIENT_LOCAL_FILES) == CLIENT_LOCAL_FILES);
534 if (mysql_ping(H->server)) {
539 mysql_stat(H->server);
540 switch (mysql_errno(H->server)) {
630 if (!(H->server = pdo_mysql_init(dbh->is_persistent))) {
676 if (mysql_options(H->server, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout)) {
687 if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) {
699 mysql_options(H->server, MYSQL_OPT_RECONNECT, (const char*)&reconnect);
704 if (mysql_options(H->server, MYSQL_INIT_COMMAND, (const char *)ZSTR_VAL(init_cmd))) {
714 if (mysql_options(H->server, MYSQL_READ_DEFAULT_FILE, (const char *)ZSTR_VAL(default_file))) {
724 if (mysql_options(H->server, MYSQL_READ_DEFAULT_GROUP, (const char *)ZSTR_VAL(default_group))) {
734 if (mysql_options(H->server, MYSQL_OPT_COMPRESS, 0)) {
747 mysql_ssl_set(H->server,
774 if (mysql_options(H->server, MYSQL_SERVER_PUBLIC_KEY, ZSTR_VAL(public_key))) {
799 if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) {
807 if (vars[0].optval && mysql_options(H->server, MYSQL_SET_CHARSET_NAME, vars[0].optval)) {
837 …if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_le…
840 …if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, c…