view tests/transact.ur @ 2160:72fe1cc704c5

Tag NULLs with their types in SQL, to help the DBMS do type inference
author Adam Chlipala <adam@chlipala.net>
date Sat, 04 Jul 2015 19:24:26 -0400
parents 1cc67fdac4d3
children
line wrap: on
line source
fun listHell n =
    if n <= 0 then
        []
    else
        n :: List.append (listHell (n-1)) (listHell (n-1))

fun doit r =
    Transactional.foo;
    return <xml>{[listHell (readError r.N)]}</xml>

fun main () = return <xml><body>
  <form> <textbox{#N}/> <submit action={doit}/> </form>
</body></xml>