Thank you a lot.
> import "x-alice:/lib/system/UnsafeComponent"
> val c = Component.fromPackage(pack (val it = 666) : (val it : int))
> val s = UnsafeComponent.pack_ c
> val c' = UnsafeComponent.unpack_ s
> val p = ComponentManager.eval(Url.fromString "", c')
> open unpack p : (val it : int)
The interface to sqlite though does not accept s as a string. For example I
tried on a table
tpackages (id int, seamstring text)
with above's s
val updateTable = "update tpackages set seamstring='"^
s ^
"' where id=1"
val ct : unit list = await (SQLite.query(dbase,updateTable))
and received the error:
Uncaught exception
SQLError "unrecognized token: \"'seam\^E\""
I also tried with a blob column, but realised that I wouldn't really know how
to feed, say, a package to the insert-into-a-blob-column statement.
Would you know of a way to do that?
Thank you again for the advice.
Hans Peter
_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users