summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/php_pdo_mysql_int.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-03 02:20:08 +0000
committerWez Furlong <wez@php.net>2005-07-03 02:20:08 +0000
commitd7e5dfb2def27dd3e9ec03b31bac1f6b705c365a (patch)
tree8f1acaa6df7e599ee56934ce04518ae1d6ca3b53 /ext/pdo_mysql/php_pdo_mysql_int.h
parent6649a16c3dc31c5cb0d7edbdc3ca48a5d541fc60 (diff)
downloadphp-git-d7e5dfb2def27dd3e9ec03b31bac1f6b705c365a.tar.gz
Enable native mysql 4.1.x prepared statement support
# the hardest part was installing 4.1.x on a gentoo box over a 56k modem
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rwxr-xr-xext/pdo_mysql/php_pdo_mysql_int.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h
index 9a2c473a13..4f5a091c98 100755
--- a/ext/pdo_mysql/php_pdo_mysql_int.h
+++ b/ext/pdo_mysql/php_pdo_mysql_int.h
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2004 The PHP Group |
+ | Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -13,6 +13,7 @@
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: George Schlossnagle <george@omniti.com> |
+ | Wez Furlong <wez@php.net> |
+----------------------------------------------------------------------+
*/
@@ -52,14 +53,20 @@ typedef struct {
MYSQL_ROW current_data;
long *current_lengths;
pdo_mysql_error_info einfo;
-} pdo_mysql_stmt;
+#if HAVE_MYSQL_STMT_PREPARE
+ MYSQL_STMT *stmt;
+
+ int num_params;
+ MYSQL_BIND *params;
+ my_bool *in_null;
+ unsigned long *in_length;
+
+ MYSQL_BIND *bound_result;
+ my_bool *out_null;
+ unsigned long *out_length;
-typedef struct {
- char *repr;
- long repr_len;
- int mysql_type;
- void *thing; /* for LOBS, REFCURSORS etc. */
-} pdo_mysql_bound_param;
+#endif
+} pdo_mysql_stmt;
extern pdo_driver_t pdo_mysql_driver;