summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-09-17 15:18:18 +0500
committerunknown <hf@deer.(none)>2003-09-17 15:18:18 +0500
commitc6ac7fd44d53d82598e88ec14d5c17ad51c0360a (patch)
treee8962724415be2d9f12cb72ce87a2be43fe4b342 /include
parentdb34d536e7a35f58fc90d2c945ada097d66f0d3e (diff)
downloadmariadb-git-c6ac7fd44d53d82598e88ec14d5c17ad51c0360a.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h1
-rw-r--r--include/sql_common.h7
2 files changed, 8 insertions, 0 deletions
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