summaryrefslogtreecommitdiff
path: root/demo/treeFun.ur
diff options
context:
space:
mode:
Diffstat (limited to 'demo/treeFun.ur')
-rw-r--r--demo/treeFun.ur2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/treeFun.ur b/demo/treeFun.ur
index 60633695..236f354c 100644
--- a/demo/treeFun.ur
+++ b/demo/treeFun.ur
@@ -18,7 +18,7 @@ functor Make(M : sig
(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>