Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0480c177
Commit
0480c177
authored
Sep 13, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b5428
parents
134b5c7d
4139e73c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
mysql-test/r/order_by.result
mysql-test/r/order_by.result
+13
-0
mysql-test/t/order_by.test
mysql-test/t/order_by.test
+13
-0
No files found.
mysql-test/r/order_by.result
View file @
0480c177
...
@@ -723,3 +723,16 @@ col2 col col
...
@@ -723,3 +723,16 @@ col2 col col
2 2 2
2 2 2
1 3 3
1 3 3
drop table t1, t2;
drop table t1, t2;
create table t1 (a char(25));
insert into t1 set a = repeat('x', 20);
insert into t1 set a = concat(repeat('x', 19), 'z');
insert into t1 set a = concat(repeat('x', 19), 'ab');
insert into t1 set a = concat(repeat('x', 19), 'aa');
set max_sort_length=20;
select a from t1 order by a;
a
xxxxxxxxxxxxxxxxxxxab
xxxxxxxxxxxxxxxxxxxaa
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxz
drop table t1;
mysql-test/t/order_by.test
View file @
0480c177
...
@@ -486,3 +486,16 @@ select t2.col2 as col, t2.col from t2 order by t2.col;
...
@@ -486,3 +486,16 @@ select t2.col2 as col, t2.col from t2 order by t2.col;
select
t2
.
col2
,
t2
.
col
,
t2
.
col
from
t2
order
by
t2
.
col
;
select
t2
.
col2
,
t2
.
col
,
t2
.
col
from
t2
order
by
t2
.
col
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #5428: a problem with small max_sort_length value
#
create
table
t1
(
a
char
(
25
));
insert
into
t1
set
a
=
repeat
(
'x'
,
20
);
insert
into
t1
set
a
=
concat
(
repeat
(
'x'
,
19
),
'z'
);
insert
into
t1
set
a
=
concat
(
repeat
(
'x'
,
19
),
'ab'
);
insert
into
t1
set
a
=
concat
(
repeat
(
'x'
,
19
),
'aa'
);
set
max_sort_length
=
20
;
select
a
from
t1
order
by
a
;
drop
table
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment