diff options
author | unknown <brian@zim.(none)> | 2006-11-15 17:55:17 -0800 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2006-11-15 17:55:17 -0800 |
commit | 97ec4aa6878f80e6dd54a55179c5e2b3947731dd (patch) | |
tree | 6049c0acdf785252a7a48ec9ae8630214c4bd13c /mysql-test/t/archive.test | |
parent | bfefdaf0f3072de3df46678fc79c6d93f1e0866d (diff) | |
download | mariadb-git-97ec4aa6878f80e6dd54a55179c5e2b3947731dd.tar.gz |
This finished the bzero() on varchar patch I wrote a few months ago. It also completes the data_length() method I added to Fields to determine the length of data for a particular data type. I have many uses for this :)
mysql-test/r/archive.result:
Added test case results.
mysql-test/t/archive.test:
Added varchar specifc test case.
sql/field.cc:
Just corrected interface.
sql/field.h:
Completed data_length() call.
storage/archive/ha_archive.cc:
Corrected warnings, and finished bzero() patch
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r-- | mysql-test/t/archive.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test index 0dccd8f111a..497cd717ae2 100644 --- a/mysql-test/t/archive.test +++ b/mysql-test/t/archive.test @@ -1492,6 +1492,27 @@ select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn'); alter table t1 data directory="$MYSQLTEST_VARDIR/tmp"; select * from t1; +# Testing cleared row key +DROP TABLE t5; + +CREATE TABLE `t5` ( +`a` int(11) NOT NULL auto_increment, +b varchar(250), +c varchar(800), +KEY (`a`) +) ENGINE=ARCHIVE DEFAULT CHARSET=latin1; + +INSERT INTO t5 VALUES (NULL, "foo", "grok this!"); +INSERT INTO t5 VALUES (NULL, "We the people", NULL); +INSERT INTO t5 VALUES (NULL, "in order to form a more peefect union", "secure the blessing of liberty"); +INSERT INTO t5 VALUES (NULL, "establish justice", "to ourselves and"); +INSERT INTO t5 VALUES (32, "ensure domestic tranquility", NULL); +INSERT INTO t5 VALUES (23, "provide for the common defense", "posterity"); +INSERT INTO t5 VALUES (NULL, "promote the general welfare", "do ordain"); +INSERT INTO t5 VALUES (NULL, "abcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabc", "do ordain"); + +SELECT * FROM t5; + # # Cleanup, test is over # |