summaryrefslogtreecommitdiff
path: root/mysys/charset.c
diff options
context:
space:
mode:
authorunknown <elliot@mysql.com>2005-08-19 14:49:34 -0400
committerunknown <elliot@mysql.com>2005-08-19 14:49:34 -0400
commit1b970e94e0a736a2056cb94cfcba0b50133da1d6 (patch)
treee9b004d2e9d0b322b3e2006b7e0e0733ea5d65f9 /mysys/charset.c
parent496e86da3a2b0019a3d9c186063e2c4f56b2bb44 (diff)
downloadmariadb-git-1b970e94e0a736a2056cb94cfcba0b50133da1d6.tar.gz
Bug#11338 Fixes from review (identical functionality).
include/my_sys.h: Fixes from review (use version in log_event.cc instead) mysql-test/r/ctype_cp932.result: Updated test for bug#11338 (logging of prepared statement w/ blob type) mysql-test/t/ctype_cp932.test: udpated test for bug#11338 (logging of prepared statement w/ blob type) mysys/charset.c: Fixes from review (use version in log_event.cc instead) sql/item.cc: Fixes from review (store character_set_client differently so that fix can be merged forward to 5.0) sql/item.h: Fixes from review sql/log_event.cc: Fixes from review, str_to_hex is now used by item.cc sql/log_event.h: Added prototype for str_to_hex (now used by item.cc) sql/sql_prepare.cc: Fixes from review, store character_set_client differently so that Item_param::query_val_str can use it.
Diffstat (limited to 'mysys/charset.c')
-rw-r--r--mysys/charset.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index df3f1cfa279..3a39fce9437 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -663,21 +663,3 @@ CHARSET_INFO *fs_character_set()
return fs_cset_cache;
}
#endif
-
-/*
- Transforms a string into hex form.
- */
-char *bare_str_to_hex(char *to, const char *from, uint len)
-{
- char *p= to;
- uint i;
- for (i= 0; i < len; i++, p+= 2)
- {
- /* val[i] is char. Casting to uchar helps greatly if val[i] < 0 */
- uint tmp= (uint) (uchar) from[i];
- p[0]= _dig_vec_upper[tmp >> 4];
- p[1]= _dig_vec_upper[tmp & 15];
- }
- *p= 0;
- return p; // pointer to end 0 of 'to'
-}