diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 15:04:37 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 15:04:37 -0400 |
commit | 81138f15749d9fcd2b6056d4c4cd8c0edc5fce4b (patch) | |
tree | e4e2246dc15a7cbbf067401a21197b6fd17ea95b /tests/view.ur | |
parent | 488033c82277ffe87f8fbd32ccd52298e0883743 (diff) |
A view query works
Diffstat (limited to 'tests/view.ur')
-rw-r--r-- | tests/view.ur | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/view.ur b/tests/view.ur new file mode 100644 index 00000000..36d77deb --- /dev/null +++ b/tests/view.ur @@ -0,0 +1,10 @@ +table t : { A : int, B : string } + +view v = SELECT t.A AS X FROM t + +fun main () = + rows <- queryX (SELECT * FROM v) + (fn r => <xml><li>{[r.V.X]}</li></xml>); + return <xml><body> + {rows} + </body></xml> |