diff options
Diffstat (limited to 'tests/pquery.ur')
-rw-r--r-- | tests/pquery.ur | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/pquery.ur b/tests/pquery.ur index 0ccbc9f2..1086aaee 100644 --- a/tests/pquery.ur +++ b/tests/pquery.ur @@ -1,11 +1,13 @@ table t1 : {A : int, B : string, C : float} fun lookup (inp : {B : string}) = - s <- query (SELECT t1.B FROM t1 WHERE t1.B = {inp.B}) - (fn fs _ => return fs.T1.B) - "Couldn't find it!"; + s <- query (SELECT * FROM t1 WHERE t1.B = {inp.B}) + (fn fs _ => return fs.T1) + {A = 0, B = "Couldn't find it!", C = 0.0}; return <html><body> - Result: {cdata s} + A: {cdata (show _ s.A)}<br/> + B: {cdata (show _ s.B)}<br/> + C: {cdata (show _ s.C)}<br/> </body></html> fun main () : transaction page = return <html><body> |