diff options
author | 2009-07-18 10:27:32 -0400 | |
---|---|---|
committer | 2009-07-18 10:27:32 -0400 | |
commit | 44729d96795768c87fb042f01a62e7b14469b170 (patch) | |
tree | a26160e55fe25f54defba930744c0345a4ddf7a9 /tests/blob.ur | |
parent | 8b9a5a3993e1b92ab06f3fed61b867ade6504e2f (diff) |
Blobs tested in MySQL and SQLite
Diffstat (limited to 'tests/blob.ur')
-rw-r--r-- | tests/blob.ur | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/blob.ur b/tests/blob.ur index 4c368a86..c6106686 100644 --- a/tests/blob.ur +++ b/tests/blob.ur @@ -1,7 +1,7 @@ sequence s table t : { Id : int, Nam : option string, Data : blob, Desc : string, Typ : string } -fun view id = +fun see id = r <- oneRow (SELECT t.Data, t.Typ FROM t WHERE t.Id = {[id]}); returnBlob r.T.Data (blessMime r.T.Typ) @@ -13,7 +13,7 @@ fun save r = and main () = ls <- queryX (SELECT t.Id, t.Desc, octet_length(t.Data) AS Len FROM t ORDER BY t.Desc) - (fn r => <xml><li><a link={view r.T.Id}>{[r.T.Desc]} ({[r.Len]})</a></li></xml>); + (fn r => <xml><li><a link={see r.T.Id}>{[r.T.Desc]} ({[r.Len]})</a></li></xml>); return <xml><body> {ls} |