diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 09:45:17 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 09:45:17 -0400 |
commit | d073725a2b58302c1a1d0faf4601df140c242307 (patch) | |
tree | 3537c77687f7be703fd21e915ada3505a3fb3183 /tests/query.ur | |
parent | 514c36b4ca9d97deaa839e2d121da48f585323d0 (diff) |
Switch to using sql_from_items
Diffstat (limited to 'tests/query.ur')
-rw-r--r-- | tests/query.ur | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/query.ur b/tests/query.ur index 334c3d41..5d6264c6 100644 --- a/tests/query.ur +++ b/tests/query.ur @@ -6,18 +6,18 @@ datatype list a = Nil | Cons of a * list a val q1 = (SELECT * FROM t1) val r1 : transaction (list {A : int, B : string, C : float, D : bool}) = - query q1 - (fn fs acc => return (Cons (fs.T1, acc))) - Nil + query q1 + (fn fs acc => return (Cons (fs.T1, acc))) + Nil val r2 : transaction string = - ls <- r1; - return (case ls of - Nil => "Problem" - | Cons ({B = b, ...}, _) => b) + ls <- r1; + return (case ls of + Nil => "Problem" + | Cons ({B = b, ...}, _) => b) -val main : unit -> transaction page = fn () => - s <- r2; - return <html><body> - {cdata s} - </body></html> +fun main () : transaction page = + s <- r2; + return <xml><body> + {cdata s} + </body></xml> |