summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-09-16 16:06:25 +0500
committerunknown <hf@deer.(none)>2003-09-16 16:06:25 +0500
commitd05807153b640bee039746cc449273e0672e43c4 (patch)
treee38da8c154875ca2ff180275d93d7dfa211f0f14 /sql/sql_prepare.cc
parent774c65c7a37b0b02912940dd3c804fb526b68afa (diff)
downloadmariadb-git-d05807153b640bee039746cc449273e0672e43c4.tar.gz
SCRUM
Prepared statements in embedded server Several changes in library code with two goals: to make mysql_prepare_stmt working in embedded server to get rid of #define mysql_interface_func mysql->methods->interface_func in user's interface include/mysql.h: modifications of interface two goals: to implement prepared statements and to get rid of #define mysql_proc (mysql->smth) in interface include/sql_common.h: read_rows function got 'virtual' libmysql/client_settings.h: interface of some functions declared in client.c moved here libmysql/libmysql.c: several functions changed with declared goals libmysqld/embedded_priv.h: libmysqld.c <--> lib_sql.cc interface moved here libmysqld/lib_sql.cc: all embedded 'virtual' functions moved here so they can be static libmysqld/libmysqld.c: embedded 'virtual' function was moved out of here sql-common/client.c: several changes with the declared goal sql/sql_class.h: place to store statement data added to THD sql/sql_prepare.cc: storing of prepare_statement result for embedded server added
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 088036e4c7e..edbcdce4e43 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -156,13 +156,14 @@ static bool send_prep_stmt(PREP_STMT *stmt, uint columns)
return (my_net_write(net, buff, sizeof(buff)) || net_flush(net));
}
#else
-static bool send_prep_stmt(PREP_STMT *stmt, uint columns)
+static bool send_prep_stmt(PREP_STMT *stmt, uint columns __attribute__((unused)))
{
- MYSQL_STMT *client_stmt= stmt->thd->client_stmt;
+ THD *thd= stmt->thd;
- client_stmt->stmt_id= stmt->stmt_id;
- client_stmt->field_count= columns;
- client_stmt->param_count= stmt->param_count;
+ thd->client_stmt_id= stmt->stmt_id;
+ thd->client_param_count= stmt->param_count;
+
+ return 0;
}
#endif /*!EMBEDDED_LIBRAYR*/