Back to index

php5  5.3.10
mysqli_mysqlnd.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 2006-2009 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 MYSQLI_MYSQLND_H
00023 #define MYSQLI_MYSQLND_H
00024 
00025 #include "ext/mysqlnd/mysqlnd_libmysql_compat.h"
00026 #include "ext/mysqlnd/mysqlnd_portability.h"
00027 
00028 /* Here comes non-libmysql API to have less ifdefs in mysqli*/
00029 #define MYSQLI_CLOSE_EXPLICIT                  MYSQLND_CLOSE_EXPLICIT
00030 #define MYSQLI_CLOSE_IMPLICIT                  MYSQLND_CLOSE_IMPLICIT
00031 #define MYSQLI_CLOSE_DISCONNECTED              MYSQLND_CLOSE_DISCONNECTED
00032 
00033 #define mysqli_result_is_unbuffered(r)    ((r)->unbuf)
00034 #define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r)  ((r)->unbuf && !(r)->unbuf->eof_reached)
00035 #define mysqli_server_status(c)                  (c)->upsert_status.server_status
00036 #define mysqli_stmt_get_id(s)                    ((s)->data->stmt_id)
00037 #define mysqli_stmt_warning_count(s)      mysqlnd_stmt_warning_count((s))
00038 #define mysqli_stmt_server_status(s)      mysqlnd_stmt_server_status((s))
00039 #define mysqli_stmt_get_connection(s)     (s)->data->conn
00040 #define mysqli_close(c, how)                     mysqlnd_close((c), (how))
00041 #define mysqli_stmt_close(c, implicit)    mysqlnd_stmt_close((c), (implicit))
00042 #define mysqli_free_result(r, implicit)   mysqlnd_free_result((r), (implicit))
00043 #define mysqli_async_query(c, q, l)              mysqlnd_async_query((c), (q), (l))
00044 #define mysqli_change_user_silent(c, u, p, d)   mysqlnd_change_user((c), (u), (p), (d), TRUE)
00045 
00046 #define HAVE_STMT_NEXT_RESULT
00047 
00048 #endif