Mercurial > urweb
view tests/sqliteTime.ur @ 1824:216e92b39fc1
Paranoid inlining prevention for FFI types at the Core level; less paranoid inlining promotion for passive values at the Mono level
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 19 Sep 2012 18:01:22 -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>