diff options
author | unknown <jimw@mysql.com> | 2005-11-23 17:05:59 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-11-23 17:05:59 -0800 |
commit | 687b57be8d5e2ed0d69227f6285d4e0b804982dd (patch) | |
tree | 37b1928ae9c2e0b1e99023cac74615699a56b3d2 /mysql-test/r | |
parent | 1c9783e854965376844a021ab1312b373852f287 (diff) | |
download | mariadb-git-687b57be8d5e2ed0d69227f6285d4e0b804982dd.tar.gz |
Fix handling of maximum value for MAX_ROWS on 64-bit platforms. (Bug #14155)
mysql-test/r/create.result:
Add new results
mysql-test/t/create.test:
Add regression test
sql/table.cc:
To cap a value at 2^32-1 on a 64-bit platform, use UINT_MAX32, not
~(ulong)0, since a ulong may be 64-bit itself.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/create.result | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index 6edd4cbc48f..80a3c2ea82d 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -621,3 +621,22 @@ create table if not exists t1 (a int); Warnings: Note 1050 Table 't1' already exists drop table t1; +create table t1 (i int) engine=myisam max_rows=100000000000; +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `i` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295 +alter table t1 max_rows=100; +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `i` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=100 +alter table t1 max_rows=100000000000; +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `i` int(11) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295 +drop table t1; |