diff tests/pkeyEscape.ur @ 1722:f7d9dc5d57eb

Antiquote for PRIMARY KEY
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Apr 2012 15:47:02 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/pkeyEscape.ur	Sat Apr 21 15:47:02 2012 -0400
@@ -0,0 +1,6 @@
+table t : {A : int, B : int}
+  PRIMARY KEY {{primary_key [#A] [[B = _]]}}
+
+fun main () : transaction page =
+    queryI (SELECT * FROM t) (fn _ => return ());
+    return <xml/>