Mercurial > urweb
diff demo/treeFun.ur @ 470:7cb418e9714f
Tree demo works
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 06 Nov 2008 18:49:38 -0500 |
parents | b393c2fc80f8 |
children | 20fab0e96217 |
line wrap: on
line diff
--- a/demo/treeFun.ur Thu Nov 06 17:09:53 2008 -0500 +++ b/demo/treeFun.ur Thu Nov 06 18:49:38 2008 -0500 @@ -18,7 +18,7 @@ (root : option M.key) = let fun recurse (root : option key) = - queryX' (SELECT * FROM tab WHERE tab.{parent} = {root}) + queryX' (SELECT * FROM tab WHERE {[eqNullable' (SQL tab.{parent}) root]}) (fn r => children <- recurse (Some r.Tab.id); return <xml>