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
a2576866
Commit
a2576866
authored
Oct 07, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more order by fixes
parent
e5483ab3
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
75 deletions
+75
-75
mysql-test/include/ps_query.inc
mysql-test/include/ps_query.inc
+5
-5
mysql-test/r/ps_2myisam.result
mysql-test/r/ps_2myisam.result
+9
-9
mysql-test/r/ps_3innodb.result
mysql-test/r/ps_3innodb.result
+9
-9
mysql-test/r/ps_4heap.result
mysql-test/r/ps_4heap.result
+9
-9
mysql-test/r/ps_5merge.result
mysql-test/r/ps_5merge.result
+18
-18
mysql-test/r/ps_6bdb.result
mysql-test/r/ps_6bdb.result
+9
-9
mysql-test/r/ps_7ndb.result
mysql-test/r/ps_7ndb.result
+15
-15
mysql-test/t/ps_7ndb.test
mysql-test/t/ps_7ndb.test
+1
-1
No files found.
mysql-test/include/ps_query.inc
View file @
a2576866
...
...
@@ -115,15 +115,15 @@ execute stmt1 using @arg00;
# variations on 'group_concat'
set
@
arg00
=
'MySQL'
;
select
group_concat
(
@
arg00
,
b
)
from
t1
select
group_concat
(
@
arg00
,
b
order
by
a
)
from
t1
group
by
'a'
;
prepare
stmt1
from
' select group_concat(?,b) from t1
prepare
stmt1
from
' select group_concat(?,b
order by a
) from t1
group by ''a'' '
;
execute
stmt1
using
@
arg00
;
#
select
group_concat
(
b
,
@
arg00
)
from
t1
select
group_concat
(
b
,
@
arg00
order
by
a
)
from
t1
group
by
'a'
;
prepare
stmt1
from
' select group_concat(b,?) from t1
prepare
stmt1
from
' select group_concat(b,?
order by a
) from t1
group by ''a'' '
;
execute
stmt1
using
@
arg00
;
...
...
@@ -223,7 +223,7 @@ execute stmt1 using @arg00, @arg01;
set
@
arg00
=
'one'
;
set
@
arg01
=
'two'
;
set
@
arg02
=
'five'
;
prepare
stmt1
from
' select b FROM t1 where b in (?,?,?) '
;
prepare
stmt1
from
' select b FROM t1 where b in (?,?,?)
order by b
'
;
execute
stmt1
using
@
arg00
,
@
arg01
,
@
arg02
;
# parameter in LIKE
prepare
stmt1
from
' select b FROM t1 where b like ? '
;
...
...
mysql-test/r/ps_2myisam.result
View file @
a2576866
...
...
@@ -192,23 +192,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -319,7 +319,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
mysql-test/r/ps_3innodb.result
View file @
a2576866
...
...
@@ -192,23 +192,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -319,7 +319,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
mysql-test/r/ps_4heap.result
View file @
a2576866
...
...
@@ -193,23 +193,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -320,7 +320,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
mysql-test/r/ps_5merge.result
View file @
a2576866
...
...
@@ -235,23 +235,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -362,7 +362,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
@@ -3243,23 +3243,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -3370,7 +3370,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
mysql-test/r/ps_6bdb.result
View file @
a2576866
...
...
@@ -192,23 +192,23 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
group_concat(@arg00,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b) from t1
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
group_concat(?,b
order by a
)
MySQLone,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00) from t1
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
prepare stmt1 from ' select group_concat(b,?) from t1
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,fourMySQL
set @arg00='first' ;
set @arg01='second' ;
...
...
@@ -319,7 +319,7 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
one
...
...
mysql-test/r/ps_7ndb.result
View file @
a2576866
...
...
@@ -193,24 +193,24 @@ a concat(b,?)
3 threeMySQL
4 fourMySQL
set @arg00='MySQL' ;
select group_concat(@arg00,b) from t1
select group_concat(@arg00,b
order by a
) from t1
group by 'a' ;
group_concat(@arg00,b)
MySQL
two,MySQLfour,MySQLthree,MySQLone
prepare stmt1 from ' select group_concat(?,b) from t1
group_concat(@arg00,b
order by a
)
MySQL
one,MySQLtwo,MySQLthree,MySQLfour
prepare stmt1 from ' select group_concat(?,b
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(?,b)
MySQL
two,MySQLfour,MySQLthree,MySQLone
select group_concat(b,@arg00) from t1
group_concat(?,b
order by a
)
MySQL
one,MySQLtwo,MySQLthree,MySQLfour
select group_concat(b,@arg00
order by a
) from t1
group by 'a' ;
group_concat(b,@arg00)
twoMySQL,fourMySQL,threeMySQL,one
MySQL
prepare stmt1 from ' select group_concat(b,?) from t1
group_concat(b,@arg00
order by a
)
oneMySQL,twoMySQL,threeMySQL,four
MySQL
prepare stmt1 from ' select group_concat(b,?
order by a
) from t1
group by ''a'' ' ;
execute stmt1 using @arg00;
group_concat(b,?)
twoMySQL,fourMySQL,threeMySQL,one
MySQL
group_concat(b,?
order by a
)
oneMySQL,twoMySQL,threeMySQL,four
MySQL
set @arg00='first' ;
set @arg01='second' ;
set @arg02=NULL;
...
...
@@ -320,11 +320,11 @@ a
set @arg00= 'one' ;
set @arg01= 'two' ;
set @arg02= 'five' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?) ' ;
prepare stmt1 from ' select b FROM t1 where b in (?,?,?)
order by b
' ;
execute stmt1 using @arg00, @arg01, @arg02 ;
b
two
one
two
prepare stmt1 from ' select b FROM t1 where b like ? ';
set @arg00='two' ;
execute stmt1 using @arg00 ;
...
...
@@ -1334,7 +1334,7 @@ prepare stmt1 from 'update t1 set a=? where b=?
execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;
affected rows: 0
info: Rows matched: 0 Changed: 0 Warnings: 0
select a,b from t1 order by a;
select a,b from t1 order by a
;
a b
1 one
2 two
...
...
mysql-test/t/ps_7ndb.test
View file @
a2576866
...
...
@@ -177,7 +177,7 @@ prepare stmt1 from 'update t1 set a=? where b=?
--
enable_info
execute
stmt1
using
@
arg04
,
@
arg01
,
@
arg02
,
@
arg03
,
@
arg00
;
--
disable_info
select
a
,
b
from
t1
order
by
a
;
select
a
,
b
from
t1
order
by
a
;
drop
table
t2
;
## update with parameters in limit
...
...
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