mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
more order by fixes
This commit is contained in:
@ -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 ? ';
|
||||
|
Reference in New Issue
Block a user