mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Merged 4.1 into 5.0.
client/mysql.cc: Auto merged mysql-test/r/subselect.result: Auto merged mysql-test/r/variables.result: Auto merged mysql-test/t/subselect.test: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/lex.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_lex.cc: Auto merged sql/share/czech/errmsg.txt: Auto merged sql/share/romanian/errmsg.txt: Auto merged sql/sql_lex.h: Auto merged sql/sql_update.cc: Auto merged sql/sql_yacc.yy: Auto merged
This commit is contained in:
commit
36752387c1
97 changed files with 1927 additions and 610 deletions
|
@ -602,3 +602,6 @@ vio/test-ssl
|
|||
vio/test-sslclient
|
||||
vio/test-sslserver
|
||||
vio/viotest-ssl
|
||||
myisam/ftbench/var/*
|
||||
myisam/ftbench/data
|
||||
myisam/ftbench/t
|
||||
|
|
|
@ -1,117 +0,0 @@
|
|||
LIBRARY LIBMYSQL
|
||||
DESCRIPTION 'MySQL 4.0 Client Library'
|
||||
VERSION 4.0
|
||||
EXPORTS
|
||||
mysql_affected_rows
|
||||
mysql_close
|
||||
mysql_data_seek
|
||||
mysql_debug
|
||||
mysql_dump_debug_info
|
||||
mysql_eof
|
||||
mysql_errno
|
||||
mysql_error
|
||||
mysql_escape_string
|
||||
mysql_fetch_field
|
||||
mysql_fetch_field_direct
|
||||
mysql_fetch_fields
|
||||
mysql_fetch_lengths
|
||||
mysql_fetch_row
|
||||
mysql_field_count
|
||||
mysql_field_seek
|
||||
mysql_field_tell
|
||||
mysql_free_result
|
||||
mysql_get_client_info
|
||||
mysql_get_host_info
|
||||
mysql_get_proto_info
|
||||
mysql_get_server_info
|
||||
mysql_info
|
||||
mysql_init
|
||||
mysql_insert_id
|
||||
mysql_kill
|
||||
mysql_list_dbs
|
||||
mysql_list_fields
|
||||
mysql_list_processes
|
||||
mysql_list_tables
|
||||
mysql_num_fields
|
||||
mysql_num_rows
|
||||
mysql_odbc_escape_string
|
||||
mysql_options
|
||||
mysql_ping
|
||||
mysql_query
|
||||
mysql_real_connect
|
||||
mysql_real_query
|
||||
mysql_refresh
|
||||
mysql_row_seek
|
||||
mysql_row_tell
|
||||
mysql_select_db
|
||||
mysql_shutdown
|
||||
mysql_stat
|
||||
mysql_store_result
|
||||
mysql_thread_id
|
||||
mysql_use_result
|
||||
bmove_upp
|
||||
delete_dynamic
|
||||
_dig_vec
|
||||
init_dynamic_array
|
||||
insert_dynamic
|
||||
int2str
|
||||
is_prefix
|
||||
list_add
|
||||
list_delete
|
||||
max_allowed_packet
|
||||
my_init
|
||||
my_end
|
||||
my_strdup
|
||||
my_malloc
|
||||
my_memdup
|
||||
my_no_flags_free
|
||||
my_realloc
|
||||
my_thread_end
|
||||
my_thread_init
|
||||
net_buffer_length
|
||||
set_dynamic
|
||||
strcend
|
||||
strdup_root
|
||||
strfill
|
||||
strinstr
|
||||
strmake
|
||||
strmov
|
||||
strxmov
|
||||
myodbc_remove_escape
|
||||
mysql_thread_safe
|
||||
mysql_character_set_name
|
||||
mysql_change_user
|
||||
mysql_send_query
|
||||
mysql_read_query_result
|
||||
mysql_real_escape_string
|
||||
mysql_ssl_set
|
||||
mysql_real_connect
|
||||
mysql_master_query
|
||||
mysql_master_send_query
|
||||
mysql_slave_query
|
||||
mysql_slave_send_query
|
||||
mysql_enable_rpl_parse
|
||||
mysql_disable_rpl_parse
|
||||
mysql_rpl_parse_enabled
|
||||
mysql_enable_reads_from_master
|
||||
mysql_disable_reads_from_master
|
||||
mysql_reads_from_master_enabled
|
||||
mysql_rpl_query_type
|
||||
mysql_rpl_probe
|
||||
mysql_set_master
|
||||
mysql_add_slave
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
2
bdb/dist/s_all
vendored
2
bdb/dist/s_all
vendored
|
@ -20,4 +20,4 @@ sh s_win32_dsp # Win32 build environment.
|
|||
#sh s_vxworks # VxWorks include files.
|
||||
#sh s_java # Java support.
|
||||
sh s_test # Test suite support.
|
||||
#sh s_tags # Tags files.
|
||||
sh s_tags # Tags files.
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include <signal.h>
|
||||
#include <violite.h>
|
||||
|
||||
#if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
const char *VER= "13.5";
|
||||
|
||||
/* Don't try to make a nice table if the data is too big */
|
||||
|
@ -1114,6 +1118,9 @@ static void initialize_readline (char *name)
|
|||
rl_attempted_completion_function= (rl_completion_func_t*)&new_mysql_completion;
|
||||
rl_completion_entry_function= (rl_compentry_func_t*)&no_completion;
|
||||
#elif defined(USE_LIBEDIT_INTERFACE)
|
||||
#ifdef HAVE_LOCALE_H
|
||||
setlocale(LC_ALL,""); /* so as libedit use isprint */
|
||||
#endif
|
||||
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
|
||||
rl_completion_entry_function= (CPFunction*)&no_completion;
|
||||
#else
|
||||
|
|
|
@ -184,135 +184,135 @@ private const el_action_t el_map_emacs[] = {
|
|||
/* 124 */ ED_INSERT, /* | */
|
||||
/* 125 */ ED_INSERT, /* } */
|
||||
/* 126 */ ED_INSERT, /* ~ */
|
||||
/* 127 */ ED_INSERT, /* ^? */
|
||||
/* 128 */ ED_INSERT, /* M-^@ */
|
||||
/* 129 */ ED_INSERT, /* M-^A */
|
||||
/* 130 */ ED_INSERT, /* M-^B */
|
||||
/* 131 */ ED_INSERT, /* M-^C */
|
||||
/* 132 */ ED_INSERT, /* M-^D */
|
||||
/* 133 */ ED_INSERT, /* M-^E */
|
||||
/* 134 */ ED_INSERT, /* M-^F */
|
||||
/* 135 */ ED_INSERT, /* M-^G */
|
||||
/* 136 */ ED_INSERT, /* M-^H */
|
||||
/* 137 */ ED_INSERT, /* M-^I */
|
||||
/* 138 */ ED_INSERT, /* M-^J */
|
||||
/* 139 */ ED_INSERT, /* M-^K */
|
||||
/* 140 */ ED_INSERT, /* M-^L */
|
||||
/* 141 */ ED_INSERT, /* M-^M */
|
||||
/* 142 */ ED_INSERT, /* M-^N */
|
||||
/* 143 */ ED_INSERT, /* M-^O */
|
||||
/* 144 */ ED_INSERT, /* M-^P */
|
||||
/* 145 */ ED_INSERT, /* M-^Q */
|
||||
/* 146 */ ED_INSERT, /* M-^R */
|
||||
/* 147 */ ED_INSERT, /* M-^S */
|
||||
/* 148 */ ED_INSERT, /* M-^T */
|
||||
/* 149 */ ED_INSERT, /* M-^U */
|
||||
/* 150 */ ED_INSERT, /* M-^V */
|
||||
/* 151 */ ED_INSERT, /* M-^W */
|
||||
/* 152 */ ED_INSERT, /* M-^X */
|
||||
/* 153 */ ED_INSERT, /* M-^Y */
|
||||
/* 154 */ ED_INSERT, /* M-^Z */
|
||||
/* 155 */ ED_INSERT, /* M-^[ */
|
||||
/* 156 */ ED_INSERT, /* M-^\ */
|
||||
/* 157 */ ED_INSERT, /* M-^] */
|
||||
/* 158 */ ED_INSERT, /* M-^^ */
|
||||
/* 159 */ ED_INSERT, /* M-^_ */
|
||||
/* 160 */ ED_INSERT, /* M-SPACE */
|
||||
/* 161 */ ED_INSERT, /* M-! */
|
||||
/* 162 */ ED_INSERT, /* M-" */
|
||||
/* 163 */ ED_INSERT, /* M-# */
|
||||
/* 164 */ ED_INSERT, /* M-$ */
|
||||
/* 165 */ ED_INSERT, /* M-% */
|
||||
/* 166 */ ED_INSERT, /* M-& */
|
||||
/* 167 */ ED_INSERT, /* M-' */
|
||||
/* 168 */ ED_INSERT, /* M-( */
|
||||
/* 169 */ ED_INSERT, /* M-) */
|
||||
/* 170 */ ED_INSERT, /* M-* */
|
||||
/* 171 */ ED_INSERT, /* M-+ */
|
||||
/* 172 */ ED_INSERT, /* M-, */
|
||||
/* 173 */ ED_INSERT, /* M-- */
|
||||
/* 174 */ ED_INSERT, /* M-. */
|
||||
/* 175 */ ED_INSERT, /* M-/ */
|
||||
/* 176 */ ED_INSERT, /* M-0 */
|
||||
/* 177 */ ED_INSERT, /* M-1 */
|
||||
/* 178 */ ED_INSERT, /* M-2 */
|
||||
/* 179 */ ED_INSERT, /* M-3 */
|
||||
/* 180 */ ED_INSERT, /* M-4 */
|
||||
/* 181 */ ED_INSERT, /* M-5 */
|
||||
/* 182 */ ED_INSERT, /* M-6 */
|
||||
/* 183 */ ED_INSERT, /* M-7 */
|
||||
/* 184 */ ED_INSERT, /* M-8 */
|
||||
/* 185 */ ED_INSERT, /* M-9 */
|
||||
/* 186 */ ED_INSERT, /* M-: */
|
||||
/* 187 */ ED_INSERT, /* M-; */
|
||||
/* 188 */ ED_INSERT, /* M-< */
|
||||
/* 189 */ ED_INSERT, /* M-= */
|
||||
/* 190 */ ED_INSERT, /* M-> */
|
||||
/* 191 */ ED_INSERT, /* M-? */
|
||||
/* 192 */ ED_INSERT, /* M-@ */
|
||||
/* 193 */ ED_INSERT, /* M-A */
|
||||
/* 194 */ ED_INSERT, /* M-B */
|
||||
/* 195 */ ED_INSERT, /* M-C */
|
||||
/* 196 */ ED_INSERT, /* M-D */
|
||||
/* 197 */ ED_INSERT, /* M-E */
|
||||
/* 198 */ ED_INSERT, /* M-F */
|
||||
/* 199 */ ED_INSERT, /* M-G */
|
||||
/* 200 */ ED_INSERT, /* M-H */
|
||||
/* 201 */ ED_INSERT, /* M-I */
|
||||
/* 202 */ ED_INSERT, /* M-J */
|
||||
/* 203 */ ED_INSERT, /* M-K */
|
||||
/* 204 */ ED_INSERT, /* M-L */
|
||||
/* 205 */ ED_INSERT, /* M-M */
|
||||
/* 206 */ ED_INSERT, /* M-N */
|
||||
/* 207 */ ED_INSERT, /* M-O */
|
||||
/* 208 */ ED_INSERT, /* M-P */
|
||||
/* 209 */ ED_INSERT, /* M-Q */
|
||||
/* 210 */ ED_INSERT, /* M-R */
|
||||
/* 211 */ ED_INSERT, /* M-S */
|
||||
/* 212 */ ED_INSERT, /* M-T */
|
||||
/* 213 */ ED_INSERT, /* M-U */
|
||||
/* 214 */ ED_INSERT, /* M-V */
|
||||
/* 215 */ ED_INSERT, /* M-W */
|
||||
/* 216 */ ED_INSERT, /* M-X */
|
||||
/* 217 */ ED_INSERT, /* M-Y */
|
||||
/* 218 */ ED_INSERT, /* M-Z */
|
||||
/* 219 */ ED_INSERT, /* M-[ */
|
||||
/* 220 */ ED_INSERT, /* M-\ */
|
||||
/* 221 */ ED_INSERT, /* M-] */
|
||||
/* 222 */ ED_INSERT, /* M-^ */
|
||||
/* 223 */ ED_INSERT, /* M-_ */
|
||||
/* 223 */ ED_INSERT, /* M-` */
|
||||
/* 224 */ ED_INSERT, /* M-a */
|
||||
/* 225 */ ED_INSERT, /* M-b */
|
||||
/* 226 */ ED_INSERT, /* M-c */
|
||||
/* 227 */ ED_INSERT, /* M-d */
|
||||
/* 228 */ ED_INSERT, /* M-e */
|
||||
/* 229 */ ED_INSERT, /* M-f */
|
||||
/* 230 */ ED_INSERT, /* M-g */
|
||||
/* 231 */ ED_INSERT, /* M-h */
|
||||
/* 232 */ ED_INSERT, /* M-i */
|
||||
/* 233 */ ED_INSERT, /* M-j */
|
||||
/* 234 */ ED_INSERT, /* M-k */
|
||||
/* 235 */ ED_INSERT, /* M-l */
|
||||
/* 236 */ ED_INSERT, /* M-m */
|
||||
/* 237 */ ED_INSERT, /* M-n */
|
||||
/* 238 */ ED_INSERT, /* M-o */
|
||||
/* 239 */ ED_INSERT, /* M-p */
|
||||
/* 240 */ ED_INSERT, /* M-q */
|
||||
/* 241 */ ED_INSERT, /* M-r */
|
||||
/* 242 */ ED_INSERT, /* M-s */
|
||||
/* 243 */ ED_INSERT, /* M-t */
|
||||
/* 244 */ ED_INSERT, /* M-u */
|
||||
/* 245 */ ED_INSERT, /* M-v */
|
||||
/* 246 */ ED_INSERT, /* M-w */
|
||||
/* 247 */ ED_INSERT, /* M-x */
|
||||
/* 248 */ ED_INSERT, /* M-y */
|
||||
/* 249 */ ED_INSERT, /* M-z */
|
||||
/* 250 */ ED_INSERT, /* M-{ */
|
||||
/* 251 */ ED_INSERT, /* M-| */
|
||||
/* 252 */ ED_INSERT, /* M-} */
|
||||
/* 253 */ ED_INSERT, /* M-~ */
|
||||
/* 254 */ ED_INSERT /* M-^? */
|
||||
/* 127 */ ED_DELETE_PREV_CHAR, /* ^? */
|
||||
/* 128 */ ED_UNASSIGNED, /* M-^@ */
|
||||
/* 129 */ ED_UNASSIGNED, /* M-^A */
|
||||
/* 130 */ ED_UNASSIGNED, /* M-^B */
|
||||
/* 131 */ ED_UNASSIGNED, /* M-^C */
|
||||
/* 132 */ ED_UNASSIGNED, /* M-^D */
|
||||
/* 133 */ ED_UNASSIGNED, /* M-^E */
|
||||
/* 134 */ ED_UNASSIGNED, /* M-^F */
|
||||
/* 135 */ ED_UNASSIGNED, /* M-^G */
|
||||
/* 136 */ ED_DELETE_PREV_WORD, /* M-^H */
|
||||
/* 137 */ ED_UNASSIGNED, /* M-^I */
|
||||
/* 138 */ ED_UNASSIGNED, /* M-^J */
|
||||
/* 139 */ ED_UNASSIGNED, /* M-^K */
|
||||
/* 140 */ ED_CLEAR_SCREEN, /* M-^L */
|
||||
/* 141 */ ED_UNASSIGNED, /* M-^M */
|
||||
/* 142 */ ED_UNASSIGNED, /* M-^N */
|
||||
/* 143 */ ED_UNASSIGNED, /* M-^O */
|
||||
/* 144 */ ED_UNASSIGNED, /* M-^P */
|
||||
/* 145 */ ED_UNASSIGNED, /* M-^Q */
|
||||
/* 146 */ ED_UNASSIGNED, /* M-^R */
|
||||
/* 147 */ ED_UNASSIGNED, /* M-^S */
|
||||
/* 148 */ ED_UNASSIGNED, /* M-^T */
|
||||
/* 149 */ ED_UNASSIGNED, /* M-^U */
|
||||
/* 150 */ ED_UNASSIGNED, /* M-^V */
|
||||
/* 151 */ ED_UNASSIGNED, /* M-^W */
|
||||
/* 152 */ ED_UNASSIGNED, /* M-^X */
|
||||
/* 153 */ ED_UNASSIGNED, /* M-^Y */
|
||||
/* 154 */ ED_UNASSIGNED, /* M-^Z */
|
||||
/* 155 */ ED_UNASSIGNED, /* M-^[ */
|
||||
/* 156 */ ED_UNASSIGNED, /* M-^\ */
|
||||
/* 157 */ ED_UNASSIGNED, /* M-^] */
|
||||
/* 158 */ ED_UNASSIGNED, /* M-^^ */
|
||||
/* 159 */ EM_COPY_PREV_WORD, /* M-^_ */
|
||||
/* 160 */ ED_UNASSIGNED, /* M-SPACE */
|
||||
/* 161 */ ED_UNASSIGNED, /* M-! */
|
||||
/* 162 */ ED_UNASSIGNED, /* M-" */
|
||||
/* 163 */ ED_UNASSIGNED, /* M-# */
|
||||
/* 164 */ ED_UNASSIGNED, /* M-$ */
|
||||
/* 165 */ ED_UNASSIGNED, /* M-% */
|
||||
/* 166 */ ED_UNASSIGNED, /* M-& */
|
||||
/* 167 */ ED_UNASSIGNED, /* M-' */
|
||||
/* 168 */ ED_UNASSIGNED, /* M-( */
|
||||
/* 169 */ ED_UNASSIGNED, /* M-) */
|
||||
/* 170 */ ED_UNASSIGNED, /* M-* */
|
||||
/* 171 */ ED_UNASSIGNED, /* M-+ */
|
||||
/* 172 */ ED_UNASSIGNED, /* M-, */
|
||||
/* 173 */ ED_UNASSIGNED, /* M-- */
|
||||
/* 174 */ ED_UNASSIGNED, /* M-. */
|
||||
/* 175 */ ED_UNASSIGNED, /* M-/ */
|
||||
/* 176 */ ED_ARGUMENT_DIGIT, /* M-0 */
|
||||
/* 177 */ ED_ARGUMENT_DIGIT, /* M-1 */
|
||||
/* 178 */ ED_ARGUMENT_DIGIT, /* M-2 */
|
||||
/* 179 */ ED_ARGUMENT_DIGIT, /* M-3 */
|
||||
/* 180 */ ED_ARGUMENT_DIGIT, /* M-4 */
|
||||
/* 181 */ ED_ARGUMENT_DIGIT, /* M-5 */
|
||||
/* 182 */ ED_ARGUMENT_DIGIT, /* M-6 */
|
||||
/* 183 */ ED_ARGUMENT_DIGIT, /* M-7 */
|
||||
/* 184 */ ED_ARGUMENT_DIGIT, /* M-8 */
|
||||
/* 185 */ ED_ARGUMENT_DIGIT, /* M-9 */
|
||||
/* 186 */ ED_UNASSIGNED, /* M-: */
|
||||
/* 187 */ ED_UNASSIGNED, /* M-; */
|
||||
/* 188 */ ED_UNASSIGNED, /* M-< */
|
||||
/* 189 */ ED_UNASSIGNED, /* M-= */
|
||||
/* 190 */ ED_UNASSIGNED, /* M-> */
|
||||
/* 191 */ ED_UNASSIGNED, /* M-? */
|
||||
/* 192 */ ED_UNASSIGNED, /* M-@ */
|
||||
/* 193 */ ED_UNASSIGNED, /* M-A */
|
||||
/* 194 */ ED_PREV_WORD, /* M-B */
|
||||
/* 195 */ EM_CAPITOL_CASE, /* M-C */
|
||||
/* 196 */ EM_DELETE_NEXT_WORD, /* M-D */
|
||||
/* 197 */ ED_UNASSIGNED, /* M-E */
|
||||
/* 198 */ EM_NEXT_WORD, /* M-F */
|
||||
/* 199 */ ED_UNASSIGNED, /* M-G */
|
||||
/* 200 */ ED_UNASSIGNED, /* M-H */
|
||||
/* 201 */ ED_UNASSIGNED, /* M-I */
|
||||
/* 202 */ ED_UNASSIGNED, /* M-J */
|
||||
/* 203 */ ED_UNASSIGNED, /* M-K */
|
||||
/* 204 */ EM_LOWER_CASE, /* M-L */
|
||||
/* 205 */ ED_UNASSIGNED, /* M-M */
|
||||
/* 206 */ ED_SEARCH_NEXT_HISTORY, /* M-N */
|
||||
/* 207 */ ED_SEQUENCE_LEAD_IN, /* M-O */
|
||||
/* 208 */ ED_SEARCH_PREV_HISTORY, /* M-P */
|
||||
/* 209 */ ED_UNASSIGNED, /* M-Q */
|
||||
/* 210 */ ED_UNASSIGNED, /* M-R */
|
||||
/* 211 */ ED_UNASSIGNED, /* M-S */
|
||||
/* 212 */ ED_UNASSIGNED, /* M-T */
|
||||
/* 213 */ EM_UPPER_CASE, /* M-U */
|
||||
/* 214 */ ED_UNASSIGNED, /* M-V */
|
||||
/* 215 */ EM_COPY_REGION, /* M-W */
|
||||
/* 216 */ ED_COMMAND, /* M-X */
|
||||
/* 217 */ ED_UNASSIGNED, /* M-Y */
|
||||
/* 218 */ ED_UNASSIGNED, /* M-Z */
|
||||
/* 219 */ ED_SEQUENCE_LEAD_IN, /* M-[ */
|
||||
/* 220 */ ED_UNASSIGNED, /* M-\ */
|
||||
/* 221 */ ED_UNASSIGNED, /* M-] */
|
||||
/* 222 */ ED_UNASSIGNED, /* M-^ */
|
||||
/* 223 */ ED_UNASSIGNED, /* M-_ */
|
||||
/* 223 */ ED_UNASSIGNED, /* M-` */
|
||||
/* 224 */ ED_UNASSIGNED, /* M-a */
|
||||
/* 225 */ ED_PREV_WORD, /* M-b */
|
||||
/* 226 */ EM_CAPITOL_CASE, /* M-c */
|
||||
/* 227 */ EM_DELETE_NEXT_WORD, /* M-d */
|
||||
/* 228 */ ED_UNASSIGNED, /* M-e */
|
||||
/* 229 */ EM_NEXT_WORD, /* M-f */
|
||||
/* 230 */ ED_UNASSIGNED, /* M-g */
|
||||
/* 231 */ ED_UNASSIGNED, /* M-h */
|
||||
/* 232 */ ED_UNASSIGNED, /* M-i */
|
||||
/* 233 */ ED_UNASSIGNED, /* M-j */
|
||||
/* 234 */ ED_UNASSIGNED, /* M-k */
|
||||
/* 235 */ EM_LOWER_CASE, /* M-l */
|
||||
/* 236 */ ED_UNASSIGNED, /* M-m */
|
||||
/* 237 */ ED_SEARCH_NEXT_HISTORY, /* M-n */
|
||||
/* 238 */ ED_UNASSIGNED, /* M-o */
|
||||
/* 239 */ ED_SEARCH_PREV_HISTORY, /* M-p */
|
||||
/* 240 */ ED_UNASSIGNED, /* M-q */
|
||||
/* 241 */ ED_UNASSIGNED, /* M-r */
|
||||
/* 242 */ ED_UNASSIGNED, /* M-s */
|
||||
/* 243 */ ED_UNASSIGNED, /* M-t */
|
||||
/* 244 */ EM_UPPER_CASE, /* M-u */
|
||||
/* 245 */ ED_UNASSIGNED, /* M-v */
|
||||
/* 246 */ EM_COPY_REGION, /* M-w */
|
||||
/* 247 */ ED_COMMAND, /* M-x */
|
||||
/* 248 */ ED_UNASSIGNED, /* M-y */
|
||||
/* 249 */ ED_UNASSIGNED, /* M-z */
|
||||
/* 250 */ ED_UNASSIGNED, /* M-{ */
|
||||
/* 251 */ ED_UNASSIGNED, /* M-| */
|
||||
/* 252 */ ED_UNASSIGNED, /* M-} */
|
||||
/* 253 */ ED_UNASSIGNED, /* M-~ */
|
||||
/* 254 */ ED_DELETE_PREV_WORD /* M-^? */
|
||||
/* 255 */
|
||||
};
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ private void
|
|||
re_addc(EditLine *el, int c)
|
||||
{
|
||||
|
||||
if (isprint(c) || ((unsigned char)c)>127) {
|
||||
if (isprint(c)) {
|
||||
re_putc(el, c, 1);
|
||||
return;
|
||||
}
|
||||
|
@ -954,7 +954,7 @@ re_refresh_cursor(EditLine *el)
|
|||
h = 1;
|
||||
v++;
|
||||
}
|
||||
} else if (!isprint((unsigned char) c) || ((unsigned char)c)>127) {
|
||||
} else if (!isprint((unsigned char) c)) {
|
||||
h += 3;
|
||||
if (h > th) { /* if overflow, compensate */
|
||||
h = h - th;
|
||||
|
@ -1047,7 +1047,7 @@ re_fastaddc(EditLine *el)
|
|||
char mc = (c == '\177') ? '?' : (c | 0100);
|
||||
re_fastputc(el, '^');
|
||||
re_fastputc(el, mc);
|
||||
} else if (isprint((unsigned char) c) || ((unsigned char)c)>127) { /* normal char */
|
||||
} else if (isprint((unsigned char) c)) { /* normal char */
|
||||
re_fastputc(el, c);
|
||||
} else {
|
||||
re_fastputc(el, '\\');
|
||||
|
|
|
@ -2211,7 +2211,7 @@ then
|
|||
else
|
||||
MYSQL_CHECK_LIBEDIT_INTERFACE
|
||||
MYSQL_CHECK_NEW_RL_INTERFACE
|
||||
if ["$mysql_cv_new_rl_interface"="yes"] || [test "$mysql_cv_libedit_interface"="no"]
|
||||
if [test "$mysql_cv_new_rl_interface" = "yes"] || [test "$mysql_cv_libedit_interface" = "no"]
|
||||
then
|
||||
readline_link="-lreadline"
|
||||
else
|
||||
|
|
|
@ -118,8 +118,11 @@ extern int NEAR my_errno; /* Last error in mysys */
|
|||
#define MY_KEEP_PREALLOC 1
|
||||
#define MY_MARK_BLOCKS_FREE 2 /* move used to free list and reuse them */
|
||||
|
||||
/* defines when allocating data */
|
||||
/* Internal error numbers (for assembler functions) */
|
||||
#define MY_ERRNO_EDOM 33
|
||||
#define MY_ERRNO_ERANGE 34
|
||||
|
||||
/* defines when allocating data */
|
||||
#ifdef SAFEMALLOC
|
||||
#define my_malloc(SZ,FLAG) _mymalloc((SZ), __FILE__, __LINE__, FLAG )
|
||||
#define my_malloc_ci(SZ,FLAG) _mymalloc((SZ), sFile, uLine, FLAG )
|
||||
|
|
|
@ -270,19 +270,23 @@
|
|||
#define ER_COLLATION_CHARSET_MISMATCH 1251
|
||||
#define ER_SLAVE_WAS_RUNNING 1252
|
||||
#define ER_SLAVE_WAS_NOT_RUNNING 1253
|
||||
#define ER_CUT_VALUE_GROUP_CONCAT 1254
|
||||
#define ER_SP_NO_RECURSIVE_CREATE 1255
|
||||
#define ER_SP_ALREADY_EXISTS 1256
|
||||
#define ER_SP_DOES_NOT_EXIST 1257
|
||||
#define ER_SP_DROP_FAILED 1258
|
||||
#define ER_SP_STORE_FAILED 1259
|
||||
#define ER_SP_LILABEL_MISMATCH 1260
|
||||
#define ER_SP_LABEL_REDEFINE 1261
|
||||
#define ER_SP_LABEL_MISMATCH 1262
|
||||
#define ER_SP_UNINIT_VAR 1263
|
||||
#define ER_SP_BADSELECT 1264
|
||||
#define ER_SP_BADRETURN 1265
|
||||
#define ER_SP_BADQUERY 1266
|
||||
#define ER_UPDATE_LOG_DEPRECATED_IGNORED 1267
|
||||
#define ER_UPDATE_LOG_DEPRECATED_TRANSLATED 1268
|
||||
#define ER_ERROR_MESSAGES 269
|
||||
#define ER_TOO_BIG_FOR_UNCOMPRESS 1254
|
||||
#define ER_ZLIB_Z_MEM_ERROR 1255
|
||||
#define ER_ZLIB_Z_BUF_ERROR 1256
|
||||
#define ER_ZLIB_Z_DATA_ERROR 1257
|
||||
#define ER_CUT_VALUE_GROUP_CONCAT 1258
|
||||
#define ER_SP_NO_RECURSIVE_CREATE 1259
|
||||
#define ER_SP_ALREADY_EXISTS 1260
|
||||
#define ER_SP_DOES_NOT_EXIST 1261
|
||||
#define ER_SP_DROP_FAILED 1262
|
||||
#define ER_SP_STORE_FAILED 1263
|
||||
#define ER_SP_LILABEL_MISMATCH 1264
|
||||
#define ER_SP_LABEL_REDEFINE 1265
|
||||
#define ER_SP_LABEL_MISMATCH 1266
|
||||
#define ER_SP_UNINIT_VAR 1267
|
||||
#define ER_SP_BADSELECT 1268
|
||||
#define ER_SP_BADRETURN 1269
|
||||
#define ER_SP_BADQUERY 1270
|
||||
#define ER_UPDATE_LOG_DEPRECATED_IGNORED 1271
|
||||
#define ER_UPDATE_LOG_DEPRECATED_TRANSLATED 1272
|
||||
#define ER_ERROR_MESSAGES 273
|
||||
|
|
|
@ -122,6 +122,8 @@ EXPORTS
|
|||
mysql_commit
|
||||
mysql_rollback
|
||||
mysql_autocommit
|
||||
load_defaults
|
||||
free_defaults
|
||||
|
||||
|
||||
|
||||
|
|
96
myisam/ftbench/Ecompare.pl
Executable file
96
myisam/ftbench/Ecompare.pl
Executable file
|
@ -0,0 +1,96 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# compares out-files (as created by Ereport.pl) from dir1/*.out and dir2/*.out
|
||||
# for each effectiveness column computes the probability of the hypothesis
|
||||
# "Both files have the same effectiveness"
|
||||
|
||||
# sign test is used to verify that test results are statistically
|
||||
# significant to support the hypothesis. Function is computed on the fly.
|
||||
|
||||
# basic formula is \sum_{r=0}^R C_N^r 2^{-N}
|
||||
# As N can be big, we'll work with logarithms
|
||||
$log2=log(2);
|
||||
sub probab {
|
||||
my $N=shift, $R=shift;
|
||||
|
||||
my $r, $sum=0;
|
||||
|
||||
for $r (0..$R) {
|
||||
$sum+=exp(logfac($N)-logfac($r)-logfac($N-$r)-$N*$log2);
|
||||
}
|
||||
return $sum;
|
||||
}
|
||||
|
||||
# log(N!)
|
||||
# for N<20 exact value from the table (below) is taken
|
||||
# otherwise, Stirling approximation for N! is used
|
||||
sub logfac {
|
||||
my $n=shift; die "n=$n<0" if $n<0;
|
||||
return $logfactab[$n] if $n<=$#logfactab;
|
||||
return $n*log($n)-$n+log(2*3.14159265358*$n)/2;
|
||||
}
|
||||
@logfactab=(
|
||||
0, 0, 0.693147180559945, 1.79175946922805, 3.17805383034795,
|
||||
4.78749174278205, 6.57925121201010, 8.52516136106541, 10.6046029027453,
|
||||
12.8018274800815, 15.1044125730755, 17.5023078458739, 19.9872144956619,
|
||||
22.5521638531234, 25.1912211827387, 27.8992713838409, 30.6718601060807,
|
||||
33.5050734501369, 36.3954452080331, 39.3398841871995, 42.3356164607535,
|
||||
);
|
||||
|
||||
############################# main () ###############################
|
||||
#$p=shift; $m=shift; $p-=$m;
|
||||
#if($p>$m) {
|
||||
# print "1 > 2 [+$p-$m]: ", probab($p+$m, $m), "\n";
|
||||
#} elsif($p<$m) {
|
||||
# print "1 < 2 [+$p-$m]: ", probab($p+$m, $p), "\n";
|
||||
#} else {
|
||||
# print "1 = 2 [+$p-$m]: ", probab($p+$m, $m), "\n";
|
||||
#}
|
||||
#exit;
|
||||
|
||||
die "Use: $0 dir1 dir2\n" unless @ARGV==2 &&
|
||||
-d ($dir1=shift) && -d ($dir2=shift);
|
||||
$_=`cd $dir1; echo *.out`;
|
||||
s/\.out\b//g;
|
||||
$total="";
|
||||
|
||||
for $file (split) {
|
||||
open(OUT1,$out1="$dir1/$file.out") || die "Cannot open $out1: $!";
|
||||
open(OUT2,$out2="$dir2/$file.out") || die "Cannot open $out2: $!";
|
||||
|
||||
@p=@m=();
|
||||
while(!eof(OUT1) || !eof(OUT2)) {
|
||||
$_=<OUT1>; @l1=split; shift @l1;
|
||||
$_=<OUT2>; @l2=split; shift @l2;
|
||||
|
||||
die "Number of columns differ in line $.\n" unless $#l1 == $#l2;
|
||||
|
||||
for (0..$#l1) {
|
||||
$p[$_]+= $l1[$_] > $l2[$_];
|
||||
$m[$_]+= $l1[$_] < $l2[$_];
|
||||
}
|
||||
}
|
||||
|
||||
for (0..$#l1) {
|
||||
$pp[$_]+=$p[$_]; $mm[$_]+=$m[$_];
|
||||
$total.=rep($file, ($#l1 ? $_ : undef), $p[$_], $m[$_]);
|
||||
}
|
||||
close OUT1;
|
||||
close OUT2;
|
||||
}
|
||||
|
||||
for (0..$#l1) {
|
||||
rep($total, ($#l1 ? $_ : undef), $pp[$_], $mm[$_]);
|
||||
}
|
||||
|
||||
sub rep {
|
||||
my ($test, $n, $p, $m, $c, $r)=@_;
|
||||
|
||||
if ($p>$m) { $c=">"; $r="+"; }
|
||||
elsif($p<$m) { $c="<"; $r="-"; }
|
||||
else { $c="="; $r="="; }
|
||||
$n=" $n: " if defined $n;
|
||||
printf "%-8s $n $dir1 $c $dir2 [+%03d-%03d]: %16.15f\n",
|
||||
$test, $p, $m, probab($p+$m, ($p>=$m ? $m : $p));
|
||||
$r;
|
||||
}
|
53
myisam/ftbench/Ereport.pl
Executable file
53
myisam/ftbench/Ereport.pl
Executable file
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
die "Use: $0 eval_output qrels_file\n" unless @ARGV==2;
|
||||
|
||||
open(EOUT,$eout=shift) || die "Cannot open $eout: $!";
|
||||
open(RELJ,$relj=shift) || die "Cannot open $relj: $!";
|
||||
|
||||
$_=<EOUT>;
|
||||
die "$eout must start with a number!\n "unless /^[1-9][0-9]*\n/;
|
||||
$ndocs=$_+0;
|
||||
|
||||
$qid=0;
|
||||
$relj_str=<RELJ>;
|
||||
$eout_str=<EOUT>;
|
||||
|
||||
while(!eof(RELJ) || !eof(EOUT)) {
|
||||
++$qid;
|
||||
%dq=();
|
||||
$A=$B=$AB=0;
|
||||
$Ravg=$Pavg=0;
|
||||
|
||||
while($relj_str =~ /^0*$qid\s+(\d+)/) {
|
||||
++$A;
|
||||
$dq{$1+0}=1;
|
||||
last unless $relj_str=<RELJ>;
|
||||
}
|
||||
# Favg measure = 1/(a/Pavg+(1-a)/Ravg)
|
||||
sub Favg { my $a=shift; $Pavg*$Ravg ? 1/($a/$Pavg+(1-$a)/$Ravg) : 0; }
|
||||
# F0 : a=0 -- ignore precision
|
||||
# F5 : a=0.5
|
||||
# F1 : a=1 -- ignore recall
|
||||
while($eout_str =~ /^$qid\s+(\d+)\s+(\d+\.\d+)/) {
|
||||
$B++;
|
||||
$AB++ if $dq{$1+0};
|
||||
$Ravg+=$AB;
|
||||
$Pavg+=$AB/$B;
|
||||
last unless $eout_str=<EOUT>;
|
||||
}
|
||||
next unless $A;
|
||||
|
||||
$Ravg/=$B*$A if $B;
|
||||
$Pavg/=$B if $B;
|
||||
|
||||
write;
|
||||
format=
|
||||
@##### @#.#######
|
||||
$qid, Favg(0.5)
|
||||
.
|
||||
}
|
||||
|
||||
exit 0;
|
||||
|
||||
|
81
myisam/ftbench/ft-test-run.sh
Executable file
81
myisam/ftbench/ft-test-run.sh
Executable file
|
@ -0,0 +1,81 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
if [ ! -x ./ft-test-run.sh ] ; then
|
||||
echo "Usage: ./ft-test-run.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BASE=`pwd`
|
||||
DATA=$BASE/var
|
||||
ROOT=`cd ../..; pwd`
|
||||
MYSQLD=$ROOT/sql/mysqld
|
||||
MYSQL=$ROOT/client/mysql
|
||||
MYSQLADMIN=$ROOT/client/mysqladmin
|
||||
SOCK=$DATA/mysql.sock
|
||||
PID=$DATA/mysql.pid
|
||||
H=../ftdefs.h
|
||||
OPTS="--no-defaults --socket=$SOCK --character-sets-dir=$ROOT/sql/share/charsets"
|
||||
|
||||
# --ft_min_word_len=#
|
||||
# --ft_max_word_len=#
|
||||
# --ft_max_word_len_for_sort=#
|
||||
# --ft_stopword_file=name
|
||||
# --key_buffer_size=#
|
||||
|
||||
stop_myslqd()
|
||||
{
|
||||
[ -S $SOCK ] && $MYSQLADMIN $OPTS shutdown
|
||||
[ -f $PID ] && kill `cat $PID` && sleep 15 && [ -f $PID ] && kill -9 `cat $PID`
|
||||
}
|
||||
|
||||
if [ ! -d t/BEST ] ; then
|
||||
echo "No ./t/BEST directory! Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
rm -f t/BEST/report.txt
|
||||
if [ -w $H ] ; then
|
||||
echo "$H is writeable! Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for batch in t/BEST t/* ; do
|
||||
A=`ls $batch/*.out`
|
||||
[ ! -d $batch -o -n "$A" ] && continue
|
||||
rm -f $H
|
||||
ln -s $BASE/$batch/ftdefs.h $H
|
||||
touch $H
|
||||
OPTS="--defaults-file=$BASE/$batch/my.cnf --socket=$SOCK --character-sets-dir=$ROOT/sql/share/charsets"
|
||||
stop_myslqd
|
||||
rm $MYSQLD
|
||||
(cd $ROOT; gmake)
|
||||
|
||||
for prog in $MYSQLD $MYSQL $MYSQLADMIN ; do
|
||||
if [ ! -x $prog ] ; then
|
||||
echo "No $prog"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
rm -rf var 2>&1 >/dev/null
|
||||
mkdir var
|
||||
mkdir var/test
|
||||
|
||||
$MYSQLD $OPTS --basedir=$BASE --skip-bdb --pid-file=$PID \
|
||||
--language=$ROOT/sql/share/english \
|
||||
--skip-grant-tables --skip-innodb \
|
||||
--skip-networking --tmpdir=$DATA &
|
||||
|
||||
$MYSQLADMIN $OPTS --connect_timeout=60 ping
|
||||
if [ $? != 0 ] ; then
|
||||
echo "$MYSQLD refused to start"
|
||||
exit 1
|
||||
fi
|
||||
for test in `cd data; echo *.test|sed "s/\.test\>//g"` ; do
|
||||
$MYSQL $OPTS --skip-column-names test <data/$test.test >var/$test.eval
|
||||
./Ereport.pl var/$test.eval data/$test.relj > $batch/$test.out || exit
|
||||
done
|
||||
stop_myslqd
|
||||
rm -f $H
|
||||
[ $batch -ef t/BEST ] || ./Ecompare.pl t/BEST $batch >> t/BEST/report.txt
|
||||
done
|
||||
|
4
mysql-test/include/have_compress.inc
Normal file
4
mysql-test/include/have_compress.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
-- require r/have_compress.require
|
||||
disable_query_log;
|
||||
show variables like "have_compress";
|
||||
enable_query_log;
|
|
@ -105,3 +105,41 @@ Table Op Msg_type Msg_text
|
|||
test.t1 check warning Found row where the auto_increment column has the value 0
|
||||
test.t1 check status OK
|
||||
drop table t1;
|
||||
create table t1 (i tinyint unsigned not null auto_increment primary key);
|
||||
insert into t1 set i = 254;
|
||||
insert into t1 set i = null;
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
255
|
||||
insert into t1 set i = null;
|
||||
Duplicate entry '255' for key 1
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
255
|
||||
drop table t1;
|
||||
create table t1 (i tinyint unsigned not null auto_increment, key (i));
|
||||
insert into t1 set i = 254;
|
||||
insert into t1 set i = null;
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
255
|
||||
insert into t1 set i = null;
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
255
|
||||
drop table t1;
|
||||
create table t1 (i tinyint unsigned not null auto_increment primary key, b int, unique (b));
|
||||
insert into t1 values (NULL, 10);
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
1
|
||||
insert into t1 values (NULL, 15);
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
2
|
||||
insert into t1 values (NULL, 10);
|
||||
Duplicate entry '10' for key 2
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
3
|
||||
drop table t1;
|
||||
|
|
|
@ -510,11 +510,11 @@ t1 CREATE TABLE `t1` (
|
|||
SHOW FIELDS FROM t1;
|
||||
Field Type Collation Null Key Default Extra
|
||||
latin1_f char(32) latin1_bin YES NULL
|
||||
SET NAMES 'latin1';
|
||||
SET CHARACTER SET 'latin1';
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_swedish_ci
|
||||
SET NAMES latin1;
|
||||
SET CHARACTER SET latin1;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_swedish_ci
|
||||
|
@ -524,51 +524,51 @@ client_collation latin1_swedish_ci
|
|||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET NAMES latin1 COLLATE latin1_bin;
|
||||
SET CHARACTER SET latin1 COLLATE latin1_bin;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_bin
|
||||
SET NAMES LATIN1 COLLATE Latin1_Bin;
|
||||
SET CHARACTER SET LATIN1 COLLATE Latin1_Bin;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_bin
|
||||
SET NAMES 'latin1' COLLATE 'latin1_bin';
|
||||
SET CHARACTER SET 'latin1' COLLATE 'latin1_bin';
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_bin
|
||||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_bin 3 0
|
||||
SET NAMES koi8r;
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET CHARACTER SET koi8r;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation koi8r_general_ci
|
||||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET COLLATION koi8r_bin;
|
||||
SET CHARACTER SET koi8r COLLATE koi8r_bin;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation koi8r_bin
|
||||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET COLLATION DEFAULT;
|
||||
SET CHARACTER SET koi8r COLLATE DEFAULT;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation koi8r_general_ci
|
||||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET NAMES DEFAULT;
|
||||
SET CHARACTER SET DEFAULT;
|
||||
SHOW VARIABLES LIKE 'client_collation';
|
||||
Variable_name Value
|
||||
client_collation latin1_swedish_ci
|
||||
SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
charset('a') collation('a') coercibility('a') 'a'='A'
|
||||
latin1 latin1_swedish_ci 3 1
|
||||
SET NAMES latin1 COLLATE koi8r;
|
||||
SET CHARACTER SET latin1 COLLATE koi8r;
|
||||
COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
|
||||
SET NAMES 'DEFAULT';
|
||||
SET CHARACTER SET 'DEFAULT';
|
||||
Unknown character set: 'DEFAULT'
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
SET NAMES latin1;
|
||||
SET CHARACTER SET latin1;
|
||||
CREATE TABLE t1 (
|
||||
comment CHAR(32) ASCII NOT NULL,
|
||||
koi8_ru_f CHAR(32) CHARACTER SET koi8r NOT NULL
|
||||
|
@ -158,7 +158,7 @@ INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'
|
|||
INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ü','CYR CAPIT E');
|
||||
INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'à','CYR CAPIT YU');
|
||||
INSERT INTO t1 (koi8_ru_f,comment) VALUES (_koi8r'ñ','CYR CAPIT YA');
|
||||
SET NAMES utf8;
|
||||
SET CHARACTER SET utf8;
|
||||
SELECT koi8_ru_f,MIN(comment),COUNT(*) FROM t1 GROUP BY 1;
|
||||
koi8_ru_f MIN(comment) COUNT(*)
|
||||
a LAT CAPIT A 2
|
||||
|
@ -221,7 +221,7 @@ z LAT CAPIT Z 2
|
|||
Ñ<EFBFBD> CYR CAPIT YA 2
|
||||
ALTER TABLE t1 ADD utf8_f CHAR(32) CHARACTER SET utf8 NOT NULL;
|
||||
UPDATE t1 SET utf8_f=CONVERT(koi8_ru_f USING utf8);
|
||||
SET NAMES koi8r;
|
||||
SET CHARACTER SET koi8r;
|
||||
SELECT * FROM t1;
|
||||
comment koi8_ru_f utf8_f
|
||||
LAT SMALL A a a
|
||||
|
@ -1300,7 +1300,7 @@ CYR CAPIT YA CYR CAPIT YA
|
|||
CYR CAPIT YA CYR SMALL YA
|
||||
CYR SMALL YA CYR CAPIT YA
|
||||
CYR SMALL YA CYR SMALL YA
|
||||
SET NAMES utf8;
|
||||
SET CHARACTER SET utf8;
|
||||
ALTER TABLE t1 ADD ucs2_f CHAR(32) CHARACTER SET ucs2;
|
||||
ALTER TABLE t1 CHANGE ucs2_f ucs2_f CHAR(32) UNICODE NOT NULL;
|
||||
INSERT INTO t1 (ucs2_f,comment) VALUES (0x0391,'GREEK CAPIT ALPHA');
|
||||
|
@ -1471,7 +1471,7 @@ ARMENIAN SMALL GIM գ գ գ
|
|||
ARMENIAN SMALL DA Õ¤ Õ¤ Õ¤
|
||||
ARMENIAN SMALL ECH Õ¥ Õ¥ Õ¥
|
||||
ARMENIAN SMALL ZA Õ¦ Õ¦ Õ¦
|
||||
SET NAMES 'binary';
|
||||
SET CHARACTER SET 'binary';
|
||||
SELECT * FROM t1;
|
||||
comment koi8_ru_f utf8_f bin_f ucs2_f armscii8_f greek_f
|
||||
LAT SMALL A a a a |