mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
find_files(): don't sort files in my_dir(), sort table names
after all engines have discovered their tables side effect: correct alphabetical sorting as in ORDER BY ... COLLATE utf8_bin, information_schema is no longer the first after find_files(), tables like #mysql50#zzz are sorted first (as per table name), not last (as per file name zzz).
This commit is contained in:
@ -142,9 +142,9 @@ create table `#mysql50#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
ERROR 42000: Incorrect table name '#mysql50#aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12345'
|
||||
show tables;
|
||||
Tables_in_mysqltestbug26703
|
||||
#mysql50#abc`def
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1234
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
#mysql50#abc`def
|
||||
use test;
|
||||
drop database mysqltestbug26703;
|
||||
End of 5.1 tests
|
||||
|
@ -176,15 +176,15 @@ t1
|
||||
v1
|
||||
show tables;
|
||||
Tables_in_test
|
||||
t1
|
||||
#mysql50#v-1
|
||||
t1
|
||||
v1
|
||||
test.t1 OK
|
||||
show tables;
|
||||
Tables_in_test
|
||||
t1
|
||||
v1
|
||||
v-1
|
||||
v1
|
||||
drop view v1, `v-1`;
|
||||
drop table t1;
|
||||
SET NAMES utf8;
|
||||
|
@ -234,8 +234,8 @@ test
|
||||
# 'bug58090' database should be present.
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
bug58090
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
|
@ -5,8 +5,8 @@ Database Create Database
|
||||
foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */
|
||||
show schemas;
|
||||
Database
|
||||
information_schema
|
||||
foo
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
|
@ -33,12 +33,12 @@ show create database `#mysql50#mysqltest-1`;
|
||||
ERROR 42000: Unknown database '#mysql50#mysqltest-1'
|
||||
show tables in `mysqltest1`;
|
||||
Tables_in_mysqltest1
|
||||
t1
|
||||
t-1
|
||||
t1
|
||||
show tables in `mysqltest-1`;
|
||||
Tables_in_mysqltest-1
|
||||
t1
|
||||
t-1
|
||||
t1
|
||||
drop database `mysqltest1`;
|
||||
drop database `mysqltest-1`;
|
||||
drop table if exists `txu@0023p@0023p1`;
|
||||
|
Reference in New Issue
Block a user