使用下面命令部署数据库
docker pull oceanbase/oceanbase-ce:4.3.5-lts
docker run -p 2881:2881 --name oceanbase-ce -d oceanbase/oceanbase-ce:4.3.5-lts
mysql -h127.0.0.1 -P12881 -uroot@test # Connect with the root account of a general tenant
运行一下测试用例,预期结果应该为0或者为NULL,因为1不能够转化为DATE类型
CREATE TABLE t1 (c1 INT);
INSERT INTO t1 (c1) VALUES (1);
SELECT c1 = DATE'0000-00-00' FROM t1; -- actual: {1}, expected: {0}