mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Corrected index_flags returned when index are created with USING HASH
Updated ndb_ test cases mysql-test/r/ndb_autodiscover.result: Updated to new output of error message mysql-test/r/ndb_basic.result: Added som order by to sort the result correctly before comparing mysql-test/r/ndb_index_unique.result: Added test for USING HASH combined with PRIMARY KEY and UNIQUE index mysql-test/t/ndb_autodiscover.test: Correctede error case mysql-test/t/ndb_basic.test: Added som order by mysql-test/t/ndb_index_unique.test: Added test for USING HASH combined with PRIMARY KEY and UNIQUE index sql/ha_ndbcluster.cc: Added the index flag HA_ONLY_WHOLE_INDEX if index is created with USING HASH.
This commit is contained in:
@ -303,26 +303,26 @@ insert into t7 values
|
||||
("Street Road 78", 3, 92, 3),
|
||||
("Main street 89C", 5, 71, 4),
|
||||
(NULL, 8, NULL, 12);
|
||||
select * from t7;
|
||||
select * from t7 order by a;
|
||||
adress a b c
|
||||
Street Road 78 3 92 3
|
||||
Highway 3456 1 23 2
|
||||
NULL 8 NULL 12
|
||||
Street Road 78 3 92 3
|
||||
Main street 89C 5 71 4
|
||||
select a, b from t7;
|
||||
NULL 8 NULL 12
|
||||
select a, b from t7 order by a;
|
||||
a b
|
||||
3 92
|
||||
1 23
|
||||
8 NULL
|
||||
3 92
|
||||
5 71
|
||||
8 NULL
|
||||
update t7 set adress="End of road 09" where a=3;
|
||||
update t7 set adress="Gatuvägen 90C" where a=5 and c=4;
|
||||
update t7 set adress="No adress" where adress is NULL;
|
||||
select * from t7;
|
||||
select * from t7 order by a;
|
||||
adress a b c
|
||||
Gatuvägen 90C 5 71 4
|
||||
End of road 09 3 92 3
|
||||
Highway 3456 1 23 2
|
||||
End of road 09 3 92 3
|
||||
Gatuvägen 90C 5 71 4
|
||||
No adress 8 NULL 12
|
||||
select * from t7 where a=1 and c=2;
|
||||
adress a b c
|
||||
|
Reference in New Issue
Block a user