Mercurial > urweb
view tests/sqliteTime.ur @ 1540:659a2f71f5e5
Compiler frees as much memory as possible before passing control to C compiler
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 15 Aug 2011 11:26:10 -0400 |
parents | 703c2c94afd5 |
children |
line wrap: on
line source
table dates : { Date : time } fun aform () = let val a : time = readError "01/02/03 04:06:07" in dml(INSERT INTO dates (Date) VALUES ({[a]})); ds <- queryX (SELECT * FROM dates) (fn r => <xml>{[r.Dates.Date]}<br/></xml>); return <xml><body>{ds}</body></xml> end fun main () = return <xml><body><form><submit action={aform}/></form></body></xml>