comparison caching-tests/test.ur @ 2242:200a7ed4343b

Add parameterless query to caching test.
author Ziv Scully <ziv@mit.edu>
date Sun, 19 Jul 2015 19:12:50 -0700
parents f70a91f7810d
children f7bc7c11a656
comparison
equal deleted inserted replaced
2241:2b1af5dc6dee 2242:200a7ed4343b
17 WHERE Id = {[id]} OR Id = {[id - 1]} OR Id = {[id + 1]}); 17 WHERE Id = {[id]} OR Id = {[id - 1]} OR Id = {[id + 1]});
18 return <xml><body> 18 return <xml><body>
19 Changed {[id]}! 19 Changed {[id]}!
20 </body></xml> 20 </body></xml>
21 21
22 val flush17 =
23 dml (UPDATE tab
24 SET Val = Val * (Id + 2) / Val - 3
25 WHERE Id = 17);
26 return <xml><body>
27 Changed specifically 17!
28 </body></xml>
29
22 (* fun flush id = *) 30 (* fun flush id = *)
23 (* res <- oneOrNoRows (SELECT tab.Val *) 31 (* res <- oneOrNoRows (SELECT tab.Val *)
24 (* FROM tab *) 32 (* FROM tab *)
25 (* WHERE tab.Id = {[id]}); *) 33 (* WHERE tab.Id = {[id]}); *)
26 (* (case res of *) 34 (* (case res of *)