How to use SQLite3?
#11
The exec method returns an error code, use that to troubleshoot:
    local sqlq = "INSERT INTO TestTable(ID,One,Two) VALUES (\'25\',\'35\',\'45\')"
    local ErrCode, ErrMsg = TestDB:exec(sqlq)
    LOG("Error code " .. (ErrCode or "<unknown>"))
Then use the table here to decipher: http://lua.sqlite.org/index.cgi/doc/tip/...sult_codes
Reply
Thanks given by: Aggroblut


Messages In This Thread
How to use SQLite3? - by Shadowraix - 05-08-2015, 12:28 PM
RE: How to use SQLite3? - by xoft - 05-08-2015, 05:15 PM
RE: How to use SQLite3? - by Shadowraix - 05-10-2015, 12:21 AM
RE: How to use SQLite3? - by Shadowraix - 05-10-2015, 10:39 AM
RE: How to use SQLite3? - by xoft - 05-10-2015, 03:59 PM
RE: How to use SQLite3? - by Shadowraix - 05-10-2015, 04:13 PM
RE: How to use SQLite3? - by LogicParrot - 05-10-2015, 11:42 PM
RE: How to use SQLite3? - by NathanFlurry - 05-11-2015, 04:27 AM
RE: How to use SQLite3? - by xoft - 05-11-2015, 07:31 AM
RE: How to use SQLite3? - by Aggroblut - 06-02-2015, 01:43 AM
RE: How to use SQLite3? - by xoft - 06-02-2015, 02:07 AM



Users browsing this thread: 1 Guest(s)