From 6b05f916b8bd29af6205a946c4954bc3a2cb62df Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 17 Sep 2003 15:18:18 +0500 Subject: SCRUM prepared statements in embedded library include/mysql.h: stmt_execute 'virtual' method added include/sql_common.h: two functions became global libmysql/client_settings.h: declaration for cli_stmt_execute libmysql/libmysql.c: some functions changed to be usable from embedded library libmysqld/lib_sql.cc: code for embedded stmt_execute added sql-common/client.c: cli_stmt_execute added to the methods table sql/client_settings.h: no need for prepared statements in miniclient --- include/mysql.h | 1 + include/sql_common.h | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/mysql.h b/include/mysql.h index c2f653e24d7..6ec64220706 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -560,6 +560,7 @@ typedef struct st_mysql_methods MYSQL_ROW column, uint field_count); MYSQL_FIELD * (STDCALL *list_fields)(MYSQL *mysql); my_bool (STDCALL *read_prepare_result)(MYSQL *mysql, MYSQL_STMT *stmt); + int (STDCALL *stmt_execute)(MYSQL_STMT *stmt); } MYSQL_METHODS; MYSQL_STMT * STDCALL mysql_prepare(MYSQL * mysql, const char *query, diff --git a/include/sql_common.h b/include/sql_common.h index 1ca1b9b2348..1f442339c4f 100644 --- a/include/sql_common.h +++ b/include/sql_common.h @@ -34,6 +34,13 @@ void end_server(MYSQL *mysql); my_bool mysql_reconnect(MYSQL *mysql); void mysql_read_default_options(struct st_mysql_options *options, const char *filename,const char *group); +my_bool STDCALL +cli_advanced_command(MYSQL *mysql, enum enum_server_command command, + const char *header, ulong header_length, + const char *arg, ulong arg_length, my_bool skip_check); + +void set_stmt_errmsg(MYSQL_STMT * stmt, const char *err, int errcode, + const char *sqlstate); #ifdef __cplusplus } #endif -- cgit v1.2.1