log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
urweb
annotate tests/sql_if.ur @ 1573:34364e383bed
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
For new IF, fix Monoize typing and add to manual
author
Adam Chlipala <adam@chlipala.net>
date
Sat, 15 Oct 2011 09:04:41 -0400
parents
children
rev
line source
adam@1573
1
table t : { A : int, B : int }
adam@1573
2
adam@1573
3
fun main () =
adam@1573
4
x <- queryX (SELECT * FROM t WHERE IF t.A = 6 THEN t.B < 2 ELSE t.B > 5)
adam@1573
5
(fn r => <xml><li>{[r.T.A]}, {[r.T.B]}</li></xml>);
adam@1573
6
return <xml><body>{x}</body></xml>