From a747e57a19be5a2bf0166efd86547b5d851a5902 Mon Sep 17 00:00:00 2001 From: Ziv Scully Date: Tue, 11 Nov 2014 04:25:20 -0500 Subject: More invalidation progress. --- caching-tests/test.sql | 6 +++--- caching-tests/test.ur | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'caching-tests') diff --git a/caching-tests/test.sql b/caching-tests/test.sql index efa271ec..7ade7278 100644 --- a/caching-tests/test.sql +++ b/caching-tests/test.sql @@ -1,14 +1,14 @@ -CREATE TABLE uw_Test_foo01(uw_id integer NOT NULL, uw_bar text NOT NULL, +CREATE TABLE uw_Test_foo01(uw_id int8 NOT NULL, uw_bar text NOT NULL, PRIMARY KEY (uw_id) ); - CREATE TABLE uw_Test_foo10(uw_id integer NOT NULL, uw_bar text NOT NULL, + CREATE TABLE uw_Test_foo10(uw_id int8 NOT NULL, uw_bar text NOT NULL, PRIMARY KEY (uw_id) ); - CREATE TABLE uw_Test_tab(uw_id integer NOT NULL, uw_val integer NOT NULL, + CREATE TABLE uw_Test_tab(uw_id int8 NOT NULL, uw_val int8 NOT NULL, PRIMARY KEY (uw_id) ); diff --git a/caching-tests/test.ur b/caching-tests/test.ur index 06ed456c..931612bc 100644 --- a/caching-tests/test.ur +++ b/caching-tests/test.ur @@ -3,7 +3,7 @@ table foo10 : {Id : int, Bar : string} PRIMARY KEY Id table tab : {Id : int, Val : int} PRIMARY KEY Id fun cache01 () = - res <- oneOrNoRows (SELECT foo01.Bar FROM foo01 WHERE foo01.Id = 42); + res <- oneOrNoRows (SELECT foo01.Bar FROM foo01 WHERE foo01.Id = 43); return Reading 1. {case res of @@ -33,7 +33,8 @@ fun cache11 () = fun flush01 () = - dml (UPDATE foo01 SET Bar = "baz01" WHERE Id = 42); + dml (INSERT INTO foo01 (Id, Bar) VALUES (42, "baz01")); + (* dml (UPDATE foo01 SET Bar = "baz01" WHERE Id = 42); *) return Flushed 1! -- cgit v1.2.3