diff options
author | georg@lmy002.wdf.sap.corp <> | 2005-07-12 10:31:43 +0200 |
---|---|---|
committer | georg@lmy002.wdf.sap.corp <> | 2005-07-12 10:31:43 +0200 |
commit | ceba4ee9cd242ca172542ee402bb00809c670b82 (patch) | |
tree | 65aac3a57e0177c50cf47b7c33c57682fd1368f3 /include/mysql.h | |
parent | 94310faa2e549a480bba595fd6941b4b37f76bca (diff) | |
download | mariadb-git-ceba4ee9cd242ca172542ee402bb00809c670b82.tar.gz |
New attempt after Bar's review
Added api function mysql_get_character_set_info which provides
information about the current client character set.
Diffstat (limited to 'include/mysql.h')
-rw-r--r-- | include/mysql.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 */ |