aboutsummaryrefslogtreecommitdiff
path: root/test/func.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/func.test')
-rw-r--r--test/func.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/func.test b/test/func.test
index 585ae1a14..34a6f18bc 100644
--- a/test/func.test
+++ b/test/func.test
@@ -1459,5 +1459,22 @@ do_execsql_test func-33.20 {
INSERT INTO t33b(x,y) VALUES(testdirectonly(new.aaa),new.b);
END}}
+# 2020-01-09 Yongheng fuzzer find
+# The bug is in the register-validity debug logic, not in the SQLite core
+# and as such it only impacts debug builds. Release builds work fine.
+#
+reset_db
+do_execsql_test func-34.10 {
+ CREATE TABLE t1(a INT CHECK(
+ datetime( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 10,11,12,13,14,15,16,17,18,19,
+ 20,21,22,23,24,25,26,27,28,29,
+ 30,31,32,33,34,35,36,37,38,39,
+ 40,41,42,43,44,45,46,47,48,a)
+ )
+ );
+ INSERT INTO t1(a) VALUES(1),(2);
+ SELECT * FROM t1;
+} {1 2}
finish_test