summaryrefslogtreecommitdiff
path: root/sql-common
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
commit6b05f916b8bd29af6205a946c4954bc3a2cb62df (patch)
treee8962724415be2d9f12cb72ce87a2be43fe4b342 /sql-common
parenteead70fe70b5fc821827ea0bbe884eef9ad684de (diff)
downloadmariadb-git-6b05f916b8bd29af6205a946c4954bc3a2cb62df.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 'sql-common')
-rw-r--r--sql-common/client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index b3ddd64e111..73fe9e4663c 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -636,10 +636,10 @@ void free_rows(MYSQL_DATA *cur)
}
}
-static my_bool STDCALL
+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)
+ const char *header, ulong header_length,
+ const char *arg, ulong arg_length, my_bool skip_check)
{
NET *net= &mysql->net;
my_bool result= 1;
@@ -1407,7 +1407,8 @@ static MYSQL_METHODS client_methods=
cli_mysql_use_result,
cli_fetch_lengths,
cli_list_fields,
- cli_read_prepare_result
+ cli_read_prepare_result,
+ cli_stmt_execute
};
MYSQL * STDCALL