All,
I am trying to store some messages into an SQLite table via TCL, but the messages as a whole are not going in, or maybe SQLite is just not pulling them back out correctly.
Am I missing an escape or something?
keylget args MSGID mh
keylget args ARGS.DBDIR dbdir
keylget args ARGS.DBNAME dbname
set msg [msgget $mh]
package require sqlite
set database $dbdir/$dbname
sqlite3 db $database
set dbInsertStmt {Insert into msg (data) values ($msg)}
set result [db eval $dbInsertStmt]
db close