mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
759ea82ee1
Fixed problem with char > 128 in QUOTE() function. (Bug #1868) Disable creation of symlinks if my_disable_symlink is set Fixed searching of TEXT with end space. (Bug #1651) Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711) Fixed problem with UNIX_TIMESTAMP() for timestamps close to 0. (Bug #1998) Fixed timestamp.test include/my_base.h: Add HA_END_SPACE_KEY to mark keys that has VARCHAR/TEXT fields. myisam/mi_check.c: Delete not used variable myisam/mi_key.c: Fix autoincrement for signed columns (Bug #1366). Patch by Holyfoot myisam/mi_open.c: Bug fix for future (doesn't affect current code) myisam/mi_search.c: Ignore end space for VARCHAR/TEXT columns mysql-test/r/auto_increment.result: Test auto_increment with signed numbers mysql-test/r/binary.result: Update results (old result was wrong) mysql-test/r/func_str.result: Added test of QUOTE() mysql-test/r/func_time.result: Add test of unix_timestamp() mysql-test/r/have_met_timezone.require: Fixed test mysql-test/r/innodb.result: Add test for InnoDB behaviour with TRUNCATE mysql-test/r/multi_update.result: Test of multi-update bug mysql-test/r/symlink.result: Test of ALTER TABLE and symlinks mysql-test/r/timezone.result: Test of from_unixtime() mysql-test/r/truncate.result: Test of truncate and auto_increment mysql-test/r/type_blob.result: Test of key search on TEXT/VARCHAR column with end space mysql-test/t/auto_increment.test: Test auto_increment with signed numbers mysql-test/t/func_str.test: Added test of QUOTE() mysql-test/t/func_time.test: Add test of unix_timestamp() mysql-test/t/innodb.test: Add test for InnoDB behaviour with TRUNCATE mysql-test/t/multi_update.test: Test of multi-update bug mysql-test/t/symlink.test: Test of ALTER TABLE and symlinks mysql-test/t/timezone.test: Test of from_unixtime() mysql-test/t/truncate.test: Test of truncate and auto_increment mysql-test/t/type_blob.test: Test of key search on TEXT/VARCHAR column with end space mysys/my_symlink2.c: Disable creation of symlinks if my_disable_symlink is set sql/field.h: Indentation cleanup sql/ha_innodb.cc: HA_PART_KEY -> HA_PART_KEY_SEG sql/item_strfunc.cc: Fixed problem with char > 128 in QUOTE() function. (Bug #1868) sql/mysql_priv.h: Make check_dup() external sql/opt_range.cc: Fixed searching of TEXT with end space. (Bug #1651) sql/records.cc: Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711) sql/sql_acl.cc: Reset ip and ip_mask if hostname is NULL sql/sql_parse.cc: Make check_dup() global sql/sql_select.cc: Fixed searching of TEXT with end space. (Bug #1651) sql/sql_table.cc: Fixed searching of TEXT with end space. (Bug #1651) sql/sql_update.cc: Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711) sql/table.cc: Fixed searching of TEXT with end space. (Bug #1651) sql/table.h: Fixed caching bug in multi-table-update where same table was used twice. (Bug #1711) sql/time.cc: Fixed problem with UNIX_TIMESTAMP() for timestamps close to 0. (Bug #1998)
82 lines
1.9 KiB
Text
82 lines
1.9 KiB
Text
drop table if exists t1,t2;
|
|
create table t1 (name char(20) not null, primary key (name));
|
|
create table t2 (name char(20) binary not null, primary key (name));
|
|
insert into t1 values ("å");
|
|
insert into t1 values ("ä");
|
|
insert into t1 values ("ö");
|
|
insert into t2 select * from t1;
|
|
select * from t1 order by name;
|
|
name
|
|
å
|
|
ä
|
|
ö
|
|
select concat("*",name,"*") from t1 order by 1;
|
|
concat("*",name,"*")
|
|
*å*
|
|
*ä*
|
|
*ö*
|
|
select min(name),min(concat("*",name,"*")),max(name),max(concat("*",name,"*")) from t1;
|
|
min(name) min(concat("*",name,"*")) max(name) max(concat("*",name,"*"))
|
|
å *å* ö *ö*
|
|
select * from t2 order by name;
|
|
name
|
|
ä
|
|
å
|
|
ö
|
|
select concat("*",name,"*") from t2 order by 1;
|
|
concat("*",name,"*")
|
|
*ä*
|
|
*å*
|
|
*ö*
|
|
select min(name),min(concat("*",name,"*")),max(name),max(concat("*",name,"*")) from t2;
|
|
min(name) min(concat("*",name,"*")) max(name) max(concat("*",name,"*"))
|
|
ä *ä* ö *ö*
|
|
select name from t1 where name between 'Ä' and 'Ö';
|
|
name
|
|
ä
|
|
ö
|
|
select name from t2 where name between 'ä' and 'ö';
|
|
name
|
|
ä
|
|
å
|
|
ö
|
|
select name from t2 where name between 'Ä' and 'Ö';
|
|
name
|
|
drop table t1,t2;
|
|
create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b));
|
|
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
|
|
select * from t1 where a="hello";
|
|
a b
|
|
hello hello
|
|
select * from t1 where a="hello ";
|
|
a b
|
|
hello hello
|
|
select * from t1 ignore index (a) where a="hello ";
|
|
a b
|
|
hello hello
|
|
select * from t1 where b="hello";
|
|
a b
|
|
hello hello
|
|
select * from t1 where b="hello ";
|
|
a b
|
|
hello hello
|
|
select * from t1 ignore index (b) where b="hello ";
|
|
a b
|
|
alter table t1 modify b tinytext not null, drop key b, add key (b(100));
|
|
select * from t1 where b="hello ";
|
|
a b
|
|
hello hello
|
|
select * from t1 ignore index (b) where b="hello ";
|
|
a b
|
|
hello hello
|
|
drop table t1;
|
|
create table t1 (b char(8));
|
|
insert into t1 values(NULL);
|
|
select b from t1 where binary b like '';
|
|
b
|
|
select b from t1 group by binary b like '';
|
|
b
|
|
NULL
|
|
select b from t1 having binary b like '';
|
|
b
|
|
drop table t1;
|