summaryrefslogtreecommitdiff
path: root/include/mysql.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2006-02-24 18:34:15 +0200
committermonty@mysql.com <>2006-02-24 18:34:15 +0200
commit82b77cdd901bb36d4be23456bc0c5d171a29e3f7 (patch)
tree603ae9081a58d9f7bb204327f65d4a8af4425b28 /include/mysql.h
parentb11c033f496eccc680c1026a57af836c9a4578f3 (diff)
downloadmariadb-git-82b77cdd901bb36d4be23456bc0c5d171a29e3f7.tar.gz
Fixes to embedded server to be able to run tests with it
(Needed for "list of pushes" web page and autopush)
Diffstat (limited to 'include/mysql.h')
-rw-r--r--include/mysql.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/mysql.h b/include/mysql.h
index f3244d4ba36..303cb2af4f5 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -130,14 +130,14 @@ typedef MYSQL_ROWS *MYSQL_ROW_OFFSET; /* offset to current row */
#include "my_alloc.h"
+typedef struct embedded_query_result EMBEDDED_QUERY_RESULT;
typedef struct st_mysql_data {
my_ulonglong rows;
unsigned int fields;
MYSQL_ROWS *data;
MEM_ROOT alloc;
-#if !defined(CHECK_EMBEDDED_DIFFERENCES) || defined(EMBEDDED_LIBRARY)
- MYSQL_ROWS **prev_ptr;
-#endif
+ /* extra info for embedded library */
+ struct embedded_query_result *embedded_info;
} MYSQL_DATA;
enum mysql_option
@@ -287,6 +287,8 @@ typedef struct st_mysql
from mysql_stmt_close if close had to cancel result set of this object.
*/
my_bool *unbuffered_fetch_owner;
+ /* needed for embedded server - no net buffer to store the 'info' */
+ char *info_buffer;
} MYSQL;
typedef struct st_mysql_res {
@@ -755,6 +757,7 @@ typedef struct st_mysql_methods
const char *(*read_statistics)(MYSQL *mysql);
my_bool (*next_result)(MYSQL *mysql);
int (*read_change_user_result)(MYSQL *mysql, char *buff, const char *passwd);
+ int (*read_rows_from_cursor)(MYSQL_STMT *stmt);
#endif
} MYSQL_METHODS;