mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '5.5' into 10.0
This commit is contained in:
@@ -337,3 +337,22 @@ tsv timestamp as (adddate(ts, interval 1 day)) virtual
|
||||
);
|
||||
drop table t1;
|
||||
set sql_mode=default;
|
||||
#
|
||||
# MDEV-11819 NO_ZERO_IN_DATE: Incorrect generated column value
|
||||
#
|
||||
SET sql_mode='NO_ZERO_IN_DATE';
|
||||
CREATE TABLE t1
|
||||
(
|
||||
a datetime DEFAULT NULL,
|
||||
b datetime DEFAULT NULL,
|
||||
c time GENERATED ALWAYS AS (timediff(`a`,`b`)) VIRTUAL
|
||||
);
|
||||
INSERT INTO t1 VALUES ('2008-12-31 23:59:59.000001','2008-12-30 01:01:01.000002',DEFAULT);
|
||||
SELECT * FROM t1;
|
||||
a b c
|
||||
2008-12-31 23:59:59 2008-12-30 01:01:01 46:58:58
|
||||
DROP TABLE t1;
|
||||
SET sql_mode=DEFAULT;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user