diff options
Diffstat (limited to 'storage/mroonga/mysql-test/mroonga/storage/r/column_decimal_without_index.result')
-rw-r--r-- | storage/mroonga/mysql-test/mroonga/storage/r/column_decimal_without_index.result | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/storage/mroonga/mysql-test/mroonga/storage/r/column_decimal_without_index.result b/storage/mroonga/mysql-test/mroonga/storage/r/column_decimal_without_index.result new file mode 100644 index 00000000000..06162f76ddd --- /dev/null +++ b/storage/mroonga/mysql-test/mroonga/storage/r/column_decimal_without_index.result @@ -0,0 +1,27 @@ +DROP TABLE IF EXISTS diaries; +CREATE TABLE diaries ( +id INT PRIMARY KEY AUTO_INCREMENT, +title TEXT, +temperature DECIMAL +) DEFAULT CHARSET UTF8; +SHOW CREATE TABLE diaries; +Table Create Table +diaries CREATE TABLE `diaries` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `title` text, + `temperature` decimal(10,0) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=Mroonga DEFAULT CHARSET=utf8 +INSERT INTO diaries (title, temperature) VALUES ("clear day", 21); +INSERT INTO diaries (title, temperature) VALUES ("rainy day", 14); +INSERT INTO diaries (title, temperature) VALUES ("cloudy day", 17); +SELECT * FROM diaries; +id title temperature +1 clear day 21 +2 rainy day 14 +3 cloudy day 17 +SELECT * FROM diaries WHERE temperature BETWEEN "14" AND "17"; +id title temperature +2 rainy day 14 +3 cloudy day 17 +DROP TABLE diaries; |