mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
German Phone book collation is always compiled
Some collation names have been renamed BitKeeper/deleted/.del-ctype-latin1_de.c~c5d8f9208bceb98e: Delete: strings/ctype-latin1_de.c libmysql/Makefile.shared: German Phone book collation is always compiled mysql-test/r/ctype_collate.result: Some collation names have been renamed mysql-test/t/ctype_collate.test: Some collation names have been renamed mysql-test/t/ctype_latin1_de-master.opt: Some collation names have been renamed mysys/charset.c: get_charset_by_name() now will find its default collation if charset name is passed sql/share/charsets/Index.xml: Some collation names have been renamed sql/share/charsets/cp1251.xml: Some collation names have been renamed sql/share/charsets/cp1257.xml: Some collation names have been renamed sql/share/charsets/latin1.xml: Some collation names have been renamed sql/share/charsets/latin2.xml: Some collation names have been renamed sql/share/charsets/latin7.xml: Some collation names have been renamed sql/share/charsets/macce.xml: Some collation names have been renamed sql/share/charsets/macroman.xml: Some collation names have been renamed sql/sql_show.cc: Nicer output from SHOW COLLATION strings/Makefile.am: German Phone book collation is always compiled strings/ctype-czech.c: Some collation names have been renamed strings/ctype-extra.c: Don't compile dynamic charset. We should decide names convension before making this available. strings/ctype-latin1.c: German Phone book collation is always compiled
This commit is contained in:
@ -1416,15 +1416,12 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
||||
|
||||
static bool write_collation(Protocol *protocol, CHARSET_INFO *cs)
|
||||
{
|
||||
char flags[4];
|
||||
protocol->prepare_for_resend();
|
||||
protocol->store(cs->csname, system_charset_info);
|
||||
protocol->store(cs->name, system_charset_info);
|
||||
protocol->store_short((longlong) cs->number);
|
||||
flags[0]='\0';
|
||||
if (cs->state & MY_CS_PRIMARY)
|
||||
strcat(flags,"def");
|
||||
protocol->store(flags, system_charset_info);
|
||||
protocol->store((cs->state & MY_CS_PRIMARY) ? "Y" : "",system_charset_info);
|
||||
protocol->store((cs->state & MY_CS_COMPILED)? "Y" : "",system_charset_info);
|
||||
protocol->store_short((longlong) cs->strxfrm_multiply);
|
||||
return protocol->write();
|
||||
}
|
||||
@ -1443,8 +1440,9 @@ int mysqld_show_collations(THD *thd, const char *wild)
|
||||
field_list.push_back(new Item_empty_string("Charset",30));
|
||||
field_list.push_back(new Item_empty_string("Collation",30));
|
||||
field_list.push_back(new Item_return_int("Id",11, FIELD_TYPE_SHORT));
|
||||
field_list.push_back(new Item_empty_string("Flags",30));
|
||||
field_list.push_back(new Item_return_int("strx_maxlen",3, FIELD_TYPE_SHORT));
|
||||
field_list.push_back(new Item_empty_string("D",30));
|
||||
field_list.push_back(new Item_empty_string("C",30));
|
||||
field_list.push_back(new Item_return_int("Sortlen",3, FIELD_TYPE_SHORT));
|
||||
|
||||
if (protocol->send_fields(&field_list, 1))
|
||||
DBUG_RETURN(1);
|
||||
|
Reference in New Issue
Block a user