1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Remove usage of row count (as it trashes _all_ explain & table status)

Use order by


mysql-test/r/ndb_index_ordered.result:
  Use order by
mysql-test/t/ndb_index_ordered.test:
  Use order by
sql/ha_ndbcluster.cc:
  Remove usage of row count (as it trashes _all_ explain & table status)
This commit is contained in:
unknown
2004-09-03 14:46:39 +02:00
parent f54c4a9460
commit 92f58a4b76
3 changed files with 4 additions and 4 deletions

View File

@ -219,10 +219,10 @@ c int unsigned,
KEY bc(b,c)
) engine = ndb;
insert into t1 values(1,1,1),(2,NULL,2),(3,NULL,NULL),(4,4,NULL);
select * from t1 use index (bc) where b IS NULL;
select * from t1 use index (bc) where b IS NULL order by a;
a b c
3 NULL NULL
2 NULL 2
3 NULL NULL
select * from t1 use index (bc)order by a;
a b c
1 1 1