Mercurial > urweb
diff caching-tests/test.ur @ 2239:f70a91f7810d
Add limited support for parsing SQL arithmetic.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Tue, 07 Jul 2015 00:07:24 -0700 |
parents | 7f92d70a326e |
children | 200a7ed4343b |
line wrap: on
line diff
--- a/caching-tests/test.ur Mon Jul 06 01:31:04 2015 -0700 +++ b/caching-tests/test.ur Tue Jul 07 00:07:24 2015 -0700 @@ -11,11 +11,10 @@ | Some row => <xml>{[row.Tab.Val]}</xml>} </body></xml> - fun flush id = - dml (UPDATE tab - SET Id = 29, Val = 42 - WHERE Id = {[id]} OR Id = {[id - 1]} OR Id = {[id + 1]}); + dml (UPDATE tab + SET Val = Val * (Id + 2) / Val - 3 + WHERE Id = {[id]} OR Id = {[id - 1]} OR Id = {[id + 1]}); return <xml><body> Changed {[id]}! </body></xml>