Mercurial > urweb
view tests/sql_if.ur @ 2236:fab8c1f131a5
Major DNF-calculation performance decrapification.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Tue, 30 Jun 2015 01:56:22 -0700 |
parents | 34364e383bed |
children |
line wrap: on
line source
table t : { A : int, B : int } fun main () = x <- queryX (SELECT * FROM t WHERE IF t.A = 6 THEN t.B < 2 ELSE t.B > 5) (fn r => <xml><li>{[r.T.A]}, {[r.T.B]}</li></xml>); return <xml><body>{x}</body></xml>