more order by for ndb

parent a0300115
...@@ -297,7 +297,7 @@ execute stmt1 using @arg00; ...@@ -297,7 +297,7 @@ execute stmt1 using @arg00;
##### parameter used in limit clause ##### parameter used in limit clause
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
# currently (May 2004, Version 4.1) it is impossible # currently (May 2004, Version 4.1) it is impossible
......
...@@ -439,7 +439,7 @@ set @arg00=0 ; ...@@ -439,7 +439,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
......
...@@ -439,7 +439,7 @@ set @arg00=0 ; ...@@ -439,7 +439,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
......
...@@ -440,7 +440,7 @@ set @arg00=0 ; ...@@ -440,7 +440,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
......
...@@ -482,7 +482,7 @@ set @arg00=0 ; ...@@ -482,7 +482,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
...@@ -3490,7 +3490,7 @@ set @arg00=0 ; ...@@ -3490,7 +3490,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
......
...@@ -439,7 +439,7 @@ set @arg00=0 ; ...@@ -439,7 +439,7 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
......
...@@ -440,11 +440,11 @@ set @arg00=0 ; ...@@ -440,11 +440,11 @@ set @arg00=0 ;
execute stmt1 using @arg00; execute stmt1 using @arg00;
ERROR 42S22: Unknown column '?' in 'order clause' ERROR 42S22: Unknown column '?' in 'order clause'
set @arg00=1; set @arg00=1;
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1 order by a
limit 1 '; limit 1 ';
execute stmt1 ; execute stmt1 ;
a b a b
2 two 1 one
prepare stmt1 from ' select a,b from t1 prepare stmt1 from ' select a,b from t1
limit ? '; limit ? ';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 2 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment