diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-11-28 19:19:21 +0200 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-11-28 19:19:21 +0200 |
commit | 802705f957011aebbb03ca988080f914bf39a57e (patch) | |
tree | ef66c94bfc0bceb424a8ce8e01edf84b701cb6d2 /mysql-test/t/select_found.test | |
parent | 3284c39a1fca442cd4f803df0245e248a349bd16 (diff) | |
download | mariadb-git-802705f957011aebbb03ca988080f914bf39a57e.tar.gz |
adding mandatory aliases for derived tables as per SQL-99
doing it in sql_yacc.yy does not work
this commit contains fixes for other tests
there are fixes in subselect test which will have to be changed
once fix_fields is fixed to work with aliased derived tables
Diffstat (limited to 'mysql-test/t/select_found.test')
-rw-r--r-- | mysql-test/t/select_found.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/select_found.test b/mysql-test/t/select_found.test index 316e7894344..fb57224dd19 100644 --- a/mysql-test/t/select_found.test +++ b/mysql-test/t/select_found.test @@ -84,7 +84,7 @@ INSERT INTO t1 (titre,maxnumrep) VALUES ('test1','1'),('test2','2'),('test3','3'); SELECT SQL_CALC_FOUND_ROWS titre,numeropost,maxnumrep FROM t1 WHERE numeropost IN (1,2) ORDER BY maxnumrep DESC LIMIT 0, 1; SELECT FOUND_ROWS(); -SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) LIMIT 0; +SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) as a LIMIT 0; SELECT FOUND_ROWS(); SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE numeropost > 1 LIMIT 0; SELECT FOUND_ROWS(); |