From c5e573dabcbeac370173c0a181a07f8cbef4310a Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 12 Jul 2005 10:31:43 +0200 Subject: New attempt after Bar's review Added api function mysql_get_character_set_info which provides information about the current client character set. include/mysql.h: Added api function mysql_get_character_set_info which provides information about the current client character set. libmysql/libmysql.c: Added api function mysql_get_character_set_info which provides information about the current client character set. libmysql/libmysql.def: Added api function mysql_get_character_set_info which provides information about the current client character set. tests/mysql_client_test.c: Added api function mysql_get_character_set_info which provides information about the current client character set. --- include/mysql.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/mysql.h') diff --git a/include/mysql.h b/include/mysql.h index 84284fa0661..48602e27df5 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -218,6 +218,18 @@ enum mysql_rpl_type MYSQL_RPL_MASTER, MYSQL_RPL_SLAVE, MYSQL_RPL_ADMIN }; +typedef struct character_set +{ + unsigned int number; /* character set number */ + unsigned int state; /* character set state */ + const char *csname; /* collation name */ + const char *name; /* character set name */ + const char *comment; /* comment */ + const char *dir; /* character set directory */ + unsigned int mbminlen; /* min. length for multibyte strings */ + unsigned int mbmaxlen; /* max. length for multibyte strings */ +} CHARACTER_SET; + struct st_mysql_methods; typedef struct st_mysql @@ -418,6 +430,8 @@ my_bool STDCALL mysql_slave_query(MYSQL *mysql, const char *q, unsigned long length); my_bool STDCALL mysql_slave_send_query(MYSQL *mysql, const char *q, unsigned long length); +void STDCALL mysql_get_character_set_info(MYSQL *mysql, + CHARACTER_SET *charset); /* local infile support */ -- cgit v1.2.1