mariadb/storage/myisam
Alexander Barkov 185e189da3 Bug#57306 SHOW PROCESSLIST does not display string literals well.
Problem: Extended characters outside of ASCII range where not displayed
properly in SHOW PROCESSLIST, because thd_info->query was always sent as 
system_character_set (utf8). This was wrong, because query buffer
is never converted to utf8 - it is always have client character set.

Fix: sending query buffer using query character set

  @ sql/sql_class.cc
  @ sql/sql_class.h
    Introducing a new class CSET_STRING, a LEX_STRING with character set.
    Adding set_query(&CSET_STRING)
    Adding reset_query(), to use instead of set_query(0, NULL).

  @ sql/event_data_objects.cc
    Using reset_query()

  @ sql/log_event.cc
    Using reset_query()
    Adding charset argument to set_query_and_id().

  @ sql/slave.cc
    Using reset_query().

  @ sql/sp_head.cc
    Changing backing up and restore code to use CSET_STRING.

  @ sql/sql_audit.h
    Using CSET_STRING.
    In the "else" branch it's OK not to use
    global_system_variables.character_set_client.
    &my_charset_latin1, which is set in constructor, is fine
    (verified with Sergey Vojtovich).

  @ sql/sql_insert.cc
    Using set_query() with proper character set: table_name is utf8.

  @ sql/sql_parse.cc
    Adding character set argument to set_query_and_id().
    (This is the main point where thd->charset() is stored
     into thd->query_string.cs, for use in "SHOW PROCESSLIST".)
    Using reset_query().
    
  @ sql/sql_prepare.cc
    Storing client character set into thd->query_string.cs.

  @ sql/sql_show.cc
    Using CSET_STRING to fetch and send charset-aware query information
    from threads.

  @ storage/myisam/ha_myisam.cc
    Using set_query() with proper character set: table_name is utf8.

  @ mysql-test/r/show_check.result
  @ mysql-test/t/show_check.test
    Adding tests
2010-11-18 17:08:32 +03:00
..
ftbench
ChangeLog
CMakeLists.txt Patch for Bug#55854 (MySQL AB should not be AUTHOR, copyright incorrect). 2010-08-12 19:19:57 +04:00
ft_boolean_search.c WL#5498: Remove dead and unused source code 2010-07-23 17:16:29 -03:00
ft_nlq_search.c Merge of mysql-5.1-bugteam into mysql-5.5-bugteam. 2010-11-16 07:45:07 -02:00
ft_parser.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
ft_static.c WL#4738 streamline/simplify @@variable creation process 2009-12-22 10:35:56 +01:00
ft_stopwords.c Backporting Bug#32391 Character sets: crash with --character-set-server 2010-08-19 10:00:43 +04:00
ft_update.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
ftdefs.h Fix for bug #37756: enabling fulltext indexes with 2009-01-26 10:35:15 +04:00
fulltext.h Bug#42733: Type-punning warnings when compiling MySQL -- 2010-06-10 17:16:43 -03:00
ha_myisam.cc Bug#57306 SHOW PROCESSLIST does not display string literals well. 2010-11-18 17:08:32 +03:00
ha_myisam.h Bug#49938: Failing assertion: inode or deadlock in fsp/fsp0fsp.c 2010-10-06 11:34:28 -03:00
Makefile.am Backport: Remove unused and ancient files, functions, and facilities. 2010-05-28 19:13:31 -03:00
mi_cache.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_changed.c Backport of: 2009-11-24 16:54:59 +03:00
mi_check.c WL#5498: Remove dead and unused source code 2010-07-23 17:15:07 -03:00
mi_checksum.c Moved a lot of old bug fixes and safe cleanups from Maria 5.1 tree to 5.1 2007-10-11 18:07:40 +03:00
mi_close.c Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled 2010-07-08 18:20:08 -03:00
mi_create.c Bug#58057: 5.1 libmysql/libmysql.c unused variable/compile failure 2010-11-10 19:14:47 -02:00
mi_dbug.c A fix for Bug#52432 "Crash in check_table_is_closed on an 2010-06-07 16:05:34 +04:00
mi_delete.c Backport of: 2009-11-24 16:54:59 +03:00
mi_delete_all.c Manual merge of mysql-5.1-bugteam into mysql-trunk-merge. 2010-04-03 12:37:53 +04:00
mi_delete_table.c WL#5498: Remove dead and unused source code 2010-07-23 17:15:07 -03:00
mi_dynrec.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_extra.c Manual merge of mysql-5.1-bugteam into mysql-trunk-merge. 2010-04-03 12:37:53 +04:00
mi_extrafunc.h Backport from 6.0-codebase. 2009-11-25 16:25:01 +04:00
mi_info.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_key.c Bug#42511 mysqld: ctype-ucs2.c:2044: my_strnncollsp_utf32: Assertion (tlen % 4) == 0' fai 2010-08-26 16:36:33 +04:00
mi_keycache.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_locking.c Merge of mysql-5.1-bugteam into mysql-trunk-merge. 2010-07-20 16:30:10 -03:00
mi_log.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_open.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_packrec.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_page.c Bug#53445: Build with -Wall and fix warnings that it generates 2010-07-02 15:30:47 -03:00
mi_panic.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_preload.c Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabled 2010-07-08 18:20:08 -03:00
mi_range.c Merge of mysql-5.1-bugteam into mysql-5.5-merge. 2010-09-24 19:19:30 -03:00
mi_rename.c WL#5498: Remove dead and unused source code 2010-07-23 17:15:07 -03:00
mi_rfirst.c
mi_rkey.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_rlast.c
mi_rnext.c Manual merge of mysql-5.1-bugteam into mysql-trunk-merge. 2010-04-02 19:17:43 +04:00
mi_rnext_same.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_rprev.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_rrnd.c
mi_rsame.c WL#2360 Performance schema 2009-12-04 18:26:15 -07:00
mi_rsamepos.c
mi_scan.c
mi_search.c Merge of mysql-5.1-bugteam into mysql-5.5-merge. 2010-09-24 19:19:30 -03:00
mi_static.c merge 2010-08-05 15:34:19 +03:00
mi_statrec.c A test case for Bug#50788 "main.merge fails on HPUX", 2010-07-02 19:21:07 +04:00
mi_test1.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_test2.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_test3.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_test_all.res
mi_test_all.sh
mi_unique.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
mi_update.c Backport of: 2009-11-24 16:54:59 +03:00
mi_write.c WL#5498: Remove dead and unused source code 2010-07-23 17:16:29 -03:00
myisam_ftdump.c Bug#42733: Type-punning warnings when compiling MySQL 2010-07-24 09:24:44 -03:00
myisamchk.c Merge of mysql-5.1-bugteam into mysql-5.5-bugteam. 2010-10-20 17:02:59 -02:00
myisamdef.h WL#5498: Remove dead and unused source code 2010-07-23 17:15:07 -03:00
myisamlog.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
myisampack.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
NEWS
plug.in
rt_index.c Merge of mysql-5.1-bugteam into mysql-5.5-merge. 2010-09-24 19:19:30 -03:00
rt_index.h
rt_key.c
rt_key.h
rt_mbr.c Merge mysql.com:/home/hf/work/30286/my50-30286 2007-10-05 15:43:15 +05:00
rt_mbr.h
rt_split.c Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-09-24 19:13:51 -03:00
rt_test.c WL#5498: Remove dead and unused source code 2010-07-23 17:09:27 -03:00
sort.c WL#5486: Remove code for unsupported platforms 2010-07-15 08:16:06 -03:00
sp_defs.h
sp_key.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
sp_test.c WL#5498: Remove dead and unused source code 2010-07-23 17:17:55 -03:00
test_pack
TODO