diff options
author | unknown <serg@serg.mylan> | 2004-07-21 19:17:07 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-07-21 19:17:07 +0200 |
commit | cb35648ec804ff3102895611b0a04999eb93ade1 (patch) | |
tree | aa5680b866c9ffa1e4bc05dec5fc9d26335615c7 /mysql-test/r/ps_2myisam.result | |
parent | bf95f9195fe431841fe1e29e6b82c9f47ec52ad3 (diff) | |
download | mariadb-git-cb35648ec804ff3102895611b0a04999eb93ade1.tar.gz |
fixed ORDER BY ?
new tests to ensure that prepared statement *really* work
(and that MySQL not picks up some number from arbitrary location
that happens to match the parameter's value)
mysql-test/include/ps_query.inc:
new tests to ensure that prepared statement *really* work
(and that MySQL not picks up some number from arbitrary location
that happens to match the parameter's value)
mysql-test/r/ps_2myisam.result:
results updated
mysql-test/r/ps_3innodb.result:
results updated
mysql-test/r/ps_4heap.result:
results updated
mysql-test/r/ps_5merge.result:
results updated
mysql-test/r/ps_6bdb.result:
results updated
sql/sql_select.cc:
don't shortcut - it backfires!
(in particular - when itemptr is Item_param :)
Diffstat (limited to 'mysql-test/r/ps_2myisam.result')
-rw-r--r-- | mysql-test/r/ps_2myisam.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/ps_2myisam.result b/mysql-test/r/ps_2myisam.result index d630730d96f..23ce63cacc3 100644 --- a/mysql-test/r/ps_2myisam.result +++ b/mysql-test/r/ps_2myisam.result @@ -334,6 +334,16 @@ a b 1 one 3 three 2 two +set @arg00=1 ; +execute stmt1 using @arg00; +a b +1 one +2 two +3 three +4 four +set @arg00=0 ; +execute stmt1 using @arg00; +ERROR 42S22: Unknown column '?' in 'order clause' set @arg00=1; prepare stmt1 from ' select a,b from t1 limit 1 '; |