From b8fccedd9c01c3b499f64c26506c8fb4ea8b4109 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Fri, 30 Nov 2012 09:50:00 -0500 Subject: Fix generation of timestamp literals for MySQL and SQLite --- tests/timestamp.ur | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/timestamp.ur (limited to 'tests/timestamp.ur') diff --git a/tests/timestamp.ur b/tests/timestamp.ur new file mode 100644 index 00000000..56f030ed --- /dev/null +++ b/tests/timestamp.ur @@ -0,0 +1,11 @@ +table t : { A : time } + +fun many ls = + case ls of + [] => (WHERE TRUE) + | tm :: ls' => (WHERE t.A = {[tm]} AND {many ls'}) + +task initialize = fn () => + tm <- now; + dml (DELETE FROM t WHERE {many (tm :: [])}) + -- cgit v1.2.3