diff options
author | unknown <hf@deer.(none)> | 2003-09-12 19:35:34 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-09-12 19:35:34 +0500 |
commit | dc250a6efc8bc451b301c74b494200dfb3dd3f8b (patch) | |
tree | 46609c9322de2696057f154dff31ea468a3f6280 /libmysqld/libmysqld.c | |
parent | d6f15e9d02d7fb33627c937ff47c948dd9ae0b2e (diff) | |
download | mariadb-git-dc250a6efc8bc451b301c74b494200dfb3dd3f8b.tar.gz |
SCRUM:
#977 Prepared statements in embedded library
include/mysql.h:
read_prepare_result function moved to 'virtual'
libmysql/client_settings.h:
declare proper function for libmysql
libmysql/libmysql.c:
some code moved from implementation of read_prepare_result to
mysql_prepare_result to make creating separate (remote and embedded-server)
versions easier
libmysqld/libmysqld.c:
emb_read_prepare_result prototype
sql-common/client.c:
cli_read_prepare_result added to the client_methods
sql/client_settings.h:
we don't need prepared statements in mini_client
sql/sql_prepare.cc:
embedded send_prep_stmt added
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r-- | libmysqld/libmysqld.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c index f403400812f..8629312949a 100644 --- a/libmysqld/libmysqld.c +++ b/libmysqld/libmysqld.c @@ -211,7 +211,11 @@ emb_list_fields(MYSQL *mysql, const char *table, const char *wild) DBUG_RETURN(result); } - +my_bool STDCALL emb_read_prepare_result(MYSQL *mysql, MYSQL_STMT *stmt) +{ + stmt->fields= mysql->result->fields; + stmt->alloc; +} /* ** Note that the mysql argument must be initialized with mysql_init() |