mirror of
https://github.com/MariaDB/server.git
synced 2025-05-04 06:05:05 +03:00
Changed mysql-test to use --language Cleaned up parameters to filesort() configure.in: Fixed typo mysql-test/install_test_db.sh: Changed test case to use --language mysql-test/mysql-test-run.sh: Changed test case to use --language Fixed that test names are not 'cut'-ed. mysql-test/r/select_found.result: Fixed test case to make it repeatable mysql-test/t/insert.test: Added test of unique key handling mysql-test/t/order_fill_sortbuf.test: Cleaned up test mysql-test/t/select_found.test: Fixed test case to make it repeatable sql/filesort.cc: Fixed bug when sorting big files (introduced with multi-table-delete) cleaned up parameters. sql/mysql_priv.h: Cleaned up parameters to filesort() sql/mysqld.cc: Fixed typo on enum sql/sql_delete.cc: Cleanup sql/sql_select.cc: Cleanup sql/sql_table.cc: Cleanup sql/sql_test.cc: Cleanup sql/sql_update.cc: Cleanup
21 lines
484 B
Plaintext
21 lines
484 B
Plaintext
#
|
|
# This test does a create-select with ORDER BY, where there is so many
|
|
# rows MySQL needs to use a merge during the sort phase.
|
|
#
|
|
|
|
drop table if exists t1,t2;
|
|
CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL default '0',
|
|
`id2` int(11) NOT NULL default '0',
|
|
`id3` int(11) NOT NULL default '0');
|
|
let $1=4000;
|
|
while ($1)
|
|
{
|
|
eval insert into t1 (id,id2,id3) values ($1,$1,$1);
|
|
dec $1;
|
|
}
|
|
|
|
create table t2 select id2 from t1 order by id3;
|
|
select count(*) from t2;
|
|
drop table t1,t2;
|