summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_datetime_insert_delete_insert_invalid_value.result
blob: d0325c479336c69fbd643612f4fe733981d20ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DROP TABLE IF EXISTS ranges;
CREATE TABLE ranges (
id int PRIMARY KEY,
start datetime,
end datetime,
UNIQUE KEY range_key(start, end)
);
SET sql_mode = '';
INSERT INTO ranges VALUES (1, "1990-00-00 00:00:00", "2012-10-05 23:59:59");
Warnings:
Warning	1265	Data truncated for column 'start' at row 1
SELECT * FROM ranges;
id	start	end
1	1990-01-01 00:00:00	2012-10-05 23:59:59
DELETE FROM ranges WHERE id = 1;
INSERT INTO ranges VALUES (1, "1990-00-00 00:00:00", "2012-10-05 23:59:59");
Warnings:
Warning	1265	Data truncated for column 'start' at row 1
SELECT * FROM ranges;
id	start	end
1	1990-01-01 00:00:00	2012-10-05 23:59:59
SET sql_mode = DEFAULT;
DROP TABLE ranges;