Back to index

php5  5.3.10
mysqlnd_libmysql_compat.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 2006-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Authors: Georg Richter <georg@mysql.com>                             |
00016   |          Andrey Hristov <andrey@mysql.com>                           |
00017   |          Ulf Wendel <uwendel@mysql.com>                              |
00018   +----------------------------------------------------------------------+
00019 
00020 */
00021 
00022 #ifndef MYSQLND_LIBMYSQL_COMPAT_H
00023 #define MYSQLND_LIBMYSQL_COMPAT_H
00024 
00025 /* Global types and definitions*/
00026 #define MYSQL_NO_DATA                     MYSQLND_NO_DATA
00027 #define MYSQL_DATA_TRUNCATED       MYSQLND_DATA_TRUNCATED
00028 #define MYSQL_STMT                        MYSQLND_STMT
00029 #define MYSQL_FIELD                       MYSQLND_FIELD
00030 #define MYSQL_RES                         MYSQLND_RES
00031 #define MYSQL_ROW                         MYSQLND_ROW_C
00032 #define MYSQL                             MYSQLND
00033 #define my_bool                                  zend_bool
00034 #define my_ulonglong               uint64_t
00035 
00036 #define MYSQL_VERSION_ID           MYSQLND_VERSION_ID
00037 #define MYSQL_SERVER_VERSION       MYSQLND_VERSION
00038 #define MYSQL_ERRMSG_SIZE          MYSQLND_ERRMSG_SIZE
00039 #define SQLSTATE_LENGTH                   MYSQLND_SQLSTATE_LENGTH
00040 
00041 /* functions */
00042 #define mysql_affected_rows(r)                   mysqlnd_affected_rows((r))
00043 #define mysql_autocommit(r,m)                    mysqlnd_autocommit((r),(m))
00044 #define mysql_change_user(r,a,b,c)        mysqlnd_change_user((r), (a), (b), (c), FALSE)
00045 #define mysql_character_set_name(c)              mysqlnd_character_set_name((c))
00046 #define mysql_close(r)                                  mysqlnd_close((r), MYSQLND_CLOSE_EXPLICIT)
00047 #define mysql_commit(r)                                 mysqlnd_commit((r))
00048 #define mysql_data_seek(r,o)                     mysqlnd_data_seek((r),(o))
00049 #define mysql_debug(x)                                  mysqlnd_debug((x))
00050 #define mysql_dump_debug_info(r)          mysqlnd_dump_debug_info((r))
00051 #define mysql_errno(r)                                  mysqlnd_errno((r))
00052 #define mysql_error(r)                                  mysqlnd_error((r))
00053 #define mysql_escape_string(a,b,c)        mysqlnd_escape_string((a), (b), (c))
00054 #define mysql_fetch_field(r)                     mysqlnd_fetch_field((r))
00055 #define mysql_fetch_field_direct(r,o)     mysqlnd_fetch_field_direct((r), (o))
00056 #define mysql_fetch_fields(r)                    mysqlnd_fetch_fields((r))
00057 #define mysql_fetch_lengths(r)                   mysqlnd_fetch_lengths((r))
00058 #define mysql_fetch_row(r)                       mysqlnd_fetch_row_c((r))
00059 #define mysql_field_count(r)                     mysqlnd_field_count((r))
00060 #define mysql_field_seek(r,o)                    mysqlnd_field_seek((r), (o))
00061 #define mysql_field_tell(r)                      mysqlnd_field_tell((r))
00062 #define mysql_init(a)                                   mysqlnd_init((a))
00063 #define mysql_insert_id(r)                       mysqlnd_insert_id((r))
00064 #define mysql_kill(r,n)                                 mysqlnd_kill((r), (n))
00065 #define mysql_list_dbs(c, wild)                  mysqlnd_list_dbs((c), (wild))
00066 #define mysql_list_fields(c, tab, wild)   mysqlnd_list_fields((c), (tab), (wild))
00067 #define mysql_list_processes(c)                  mysqlnd_list_processes((c))
00068 #define mysql_list_tables(c, wild)        mysqlnd_list_tables((c), (wild))
00069 #define mysql_more_results(r)                    mysqlnd_more_results((r))
00070 #define mysql_next_result(r)                     mysqlnd_next_result((r))
00071 #define mysql_num_fields(r)                      mysqlnd_num_fields((r))
00072 #define mysql_num_rows(r)                        mysqlnd_num_rows((r))
00073 #define mysql_ping(r)                                   mysqlnd_ping((r))
00074 #define mysql_real_escape_string(r,a,b,c) mysqlnd_real_escape_string((r), (a), (b), (c))
00075 #define mysql_real_query(r,a,b)                  mysqlnd_query((r), (a), (b))
00076 #define mysql_refresh(conn, options)      mysqlnd_refresh((conn), (options))
00077 #define mysql_rollback(r)                        mysqlnd_rollback((r))
00078 #define mysql_select_db(r,a)                     mysqlnd_select_db((r), (a) ,strlen((a)))
00079 #define mysql_set_server_option(r,o)      mysqlnd_set_server_option((r), (o))
00080 #define mysql_set_character_set(r,a)      mysqlnd_set_character_set((r), (a))
00081 #define mysql_sqlstate(r)                        mysqlnd_sqlstate((r))
00082 #define mysql_ssl_set(c,key,cert,ca,capath,cipher)      mysqlnd_ssl_set((c), (key), (cert), (ca), (capath), (cipher))
00083 #define mysql_stmt_affected_rows(s)              mysqlnd_stmt_affected_rows((s))
00084 #define mysql_stmt_field_count(s)         mysqlnd_stmt_field_count((s))
00085 #define mysql_stmt_param_count(s)         mysqlnd_stmt_param_count((s))
00086 #define mysql_stmt_num_rows(s)                   mysqlnd_stmt_num_rows((s))
00087 #define mysql_stmt_insert_id(s)                  mysqlnd_stmt_insert_id((s))
00088 #define mysql_stmt_close(s)                      mysqlnd_stmt_close((s))
00089 #define mysql_stmt_bind_param(s,b)        mysqlnd_stmt_bind_param((s), (b))
00090 #define mysql_stmt_bind_result(s,b)              mysqlnd_stmt_bind_result((s), (b))
00091 #define mysql_stmt_errno(s)                      mysqlnd_stmt_errno((s))
00092 #define mysql_stmt_error(s)                      mysqlnd_stmt_error((s))
00093 #define mysql_stmt_sqlstate(s)                   mysqlnd_stmt_sqlstate((s))
00094 #define mysql_stmt_prepare(s,q,l)         mysqlnd_stmt_prepare((s), (q), (l))
00095 #define mysql_stmt_execute(s)                    mysqlnd_stmt_execute((s))
00096 #define mysql_stmt_reset(s)                      mysqlnd_stmt_reset((s))
00097 #define mysql_stmt_store_result(s)        mysqlnd_stmt_store_result((s))
00098 #define mysql_stmt_free_result(s)         mysqlnd_stmt_free_result((s))
00099 #define mysql_stmt_data_seek(s,r)         mysqlnd_stmt_data_seek((s), (r))
00100 #define mysql_stmt_send_long_data(s,p,d,l) mysqlnd_stmt_send_long_data((s), (p), (d), (l))
00101 #define mysql_stmt_attr_get(s,a,v)        mysqlnd_stmt_attr_get((s), (a), (v))
00102 #define mysql_stmt_attr_set(s,a,v)        mysqlnd_stmt_attr_set((s), (a), (v))
00103 #define mysql_stmt_param_metadata(s)      mysqlnd_stmt_param_metadata((s))
00104 #define mysql_stmt_result_metadata(s)     mysqlnd_stmt_result_metadata((s))
00105 #define mysql_stmt_next_result(s)         mysqlnd_stmt_next_result((s))
00106 #define mysql_stmt_more_results(s)        mysqlnd_stmt_more_results((s))
00107 #define mysql_thread_safe()                      mysqlnd_thread_safe()
00108 #define mysql_info(r)                                   mysqlnd_info((r))
00109 #define mysql_options(r,a,b)                     mysqlnd_options((r), (a), (b))
00110 #define mysql_stmt_init(r)                       mysqlnd_stmt_init((r))
00111 #define mysql_free_result(r)                     mysqlnd_free_result((r), FALSE)
00112 #define mysql_store_result(r)                    mysqlnd_store_result((r))
00113 #define mysql_use_result(r)                      mysqlnd_use_result((r))
00114 #define mysql_async_store_result(r)              mysqlnd_async_store_result((r))
00115 #define mysql_thread_id(r)                       mysqlnd_thread_id((r))
00116 #define mysql_get_client_info()                  mysqlnd_get_client_info()
00117 #define mysql_get_client_version()        mysqlnd_get_client_version()
00118 #define mysql_get_host_info(r)                   mysqlnd_get_host_info((r))
00119 #define mysql_get_proto_info(r)                  mysqlnd_get_proto_info((r))
00120 #define mysql_get_server_info(r)          mysqlnd_get_server_info((r))
00121 #define mysql_get_server_version(r)              mysqlnd_get_server_version((r))
00122 #define mysql_warning_count(r)                   mysqlnd_warning_count((r))
00123 #define mysql_eof(r)                             (((r)->unbuf && (r)->unbuf->eof_reached) || (r)->stored_data)
00124 
00125 #define REFRESH_GRANT              MYSQLND_REFRESH_GRANT
00126 #define REFRESH_LOG                MYSQLND_REFRESH_LOG
00127 #define REFRESH_TABLES             MYSQLND_REFRESH_TABLES
00128 #define REFRESH_HOSTS              MYSQLND_REFRESH_HOSTS
00129 #define REFRESH_STATUS             MYSQLND_REFRESH_STATUS
00130 #define REFRESH_THREADS            MYSQLND_REFRESH_THREADS
00131 #define REFRESH_SLAVE              MYSQLND_REFRESH_SLAVE
00132 #define REFRESH_MASTER             MYSQLND_REFRESH_MASTER
00133 #define REFRESH_BACKUP_LOG  MYSQLND_REFRESH_BACKUP_LOG
00134 
00135 #endif /* MYSQLND_LIBMYSQL_COMPAT_H */