Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* UUIDs version >= 6 are now stored without byte-swapping * UUIDs with version >=8 and variant=0 are now considered invalid * old tables are supported * old (always byte swapped) and new (swapped for version < 6) UUIDs can be compared and converted transparently
- Loading branch information
Showing
12 changed files
with
894 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# try all combinations of version and variant | ||
source include/have_sequence.inc; | ||
|
||
create table t1 (a uuid, b int not null, index (a)); | ||
insert t1 select sformat('11223344-5566-{:x}777-{}888-99aabbccddee', seq div 4, elt(1+(seq % 4),0,8,'c','e')),seq from seq_0_to_63; | ||
select * from t1; | ||
select * from t1 order by a; | ||
show create table t1; | ||
|
||
--echo # now let's use the table as above, but created in 10.11.4 | ||
let $datadir= `select @@datadir`; | ||
--copy_file $MTR_SUITE_DIR/std_data/mdev-29959.frm $datadir/test/t2.frm | ||
--copy_file $MTR_SUITE_DIR/std_data/mdev-29959.MYI $datadir/test/t2.MYI | ||
--copy_file $MTR_SUITE_DIR/std_data/mdev-29959.MYD $datadir/test/t2.MYD | ||
select * from t2; | ||
select * from t2 order by a; | ||
show create table t2; | ||
|
||
select * from t1, t2 where t1.a=t2.a; | ||
|
||
--sorted_result | ||
select * from t1 union select * from t2; | ||
|
||
alter ignore table t2 force; | ||
|
||
drop table t1, t2; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.