version 1.1.1.1, 2012/02/21 23:47:58
|
version 1.1.1.2, 2012/05/29 12:34:41
|
Line 1
|
Line 1
|
/* |
/* |
---------------------------------------------------------------------- | +----------------------------------------------------------------------+ |
| PHP Version 6 | | | PHP Version 5 | |
---------------------------------------------------------------------- | +----------------------------------------------------------------------+ |
| Copyright (c) 2007 The PHP Group | | | Copyright (c) 1997-2012 The PHP Group | |
---------------------------------------------------------------------- | +----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
| available through the world-wide-web at the following url: | |
| available through the world-wide-web at the following url: | |
Line 11
|
Line 11
|
| If you did not receive a copy of the PHP license and are unable to | |
| If you did not receive a copy of the PHP license and are unable to | |
| obtain it through the world-wide-web, please send a note to | |
| obtain it through the world-wide-web, please send a note to | |
| license@php.net so we can mail you a copy immediately. | |
| license@php.net so we can mail you a copy immediately. | |
---------------------------------------------------------------------- | +----------------------------------------------------------------------+ |
| Authors: Georg Richter <georg@mysql.com> | | | Authors: Georg Richter <georg@php.net> | |
| Andrey Hristov <andrey@mysql.com> | | | Andrey Hristov <andrey@php.net> | |
| Ulf Wendel <uwendel@mysql.com> | | | Ulf Wendel <uw@php.net> | |
---------------------------------------------------------------------- | +----------------------------------------------------------------------+ |
| |
*/ |
*/ |
|
|
#ifndef MYSQLI_LIBMYSQL_H |
#ifndef MYSQLI_LIBMYSQL_H |
Line 29
|
Line 28
|
#define MYSQLND_OPT_NUMERIC_AND_DATETIME_AS_UNICODE 200 |
#define MYSQLND_OPT_NUMERIC_AND_DATETIME_AS_UNICODE 200 |
#define MYSQLND_OPT_INT_AND_YEAR_AS_INT 201 |
#define MYSQLND_OPT_INT_AND_YEAR_AS_INT 201 |
|
|
|
/* r->data should be always NULL, at least in recent libmysql versions, the status changes once data is read*/ |
#define mysqli_result_is_unbuffered(r) ((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT && (r)->data == NULL) |
#define mysqli_result_is_unbuffered(r) ((r)->handle && (r)->handle->status == MYSQL_STATUS_USE_RESULT && (r)->data == NULL) |
#define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) mysqli_result_is_unbuffered(r) | #define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r) mysqli_result_is_unbuffered(r) |
#define mysqli_server_status(c) (c)->server_status |
#define mysqli_server_status(c) (c)->server_status |
#define mysqli_stmt_get_id(s) ((s)->stmt_id) |
#define mysqli_stmt_get_id(s) ((s)->stmt_id) |
#define mysqli_stmt_warning_count(s) mysql_warning_count((s)->mysql) |
#define mysqli_stmt_warning_count(s) mysql_warning_count((s)->mysql) |
Line 39
|
Line 39
|
#define mysqli_close(c, is_forced) mysql_close((c)) |
#define mysqli_close(c, is_forced) mysql_close((c)) |
#define mysqli_stmt_close(c, implicit) mysql_stmt_close((c)) |
#define mysqli_stmt_close(c, implicit) mysql_stmt_close((c)) |
#define mysqli_free_result(r, is_forced) mysql_free_result((r)) |
#define mysqli_free_result(r, is_forced) mysql_free_result((r)) |
#define mysqli_change_user_silent(c, u, p, d) mysql_change_user((c), (u), (p), (d)) | #define mysqli_change_user_silent(c, u, p, d, p_len) mysql_change_user((c), (u), (p), (d)) |
|
|
|
|
/* |
/* |