11-26-2014, 06:15 AM
(This post was last modified: 11-26-2014, 05:20 PM by nouseforname.)
(11-26-2014, 06:09 AM)xoft Wrote: Where is your DBExec function coming from? Are you using one of the sqlite wrappers from any of the plugins?
I am not putting anything into the list cause it didnt work yet, Thats why i didnt post the "add" thingy into my post.
Anyway, i think the "nrows" method is the right tip for me.
The DBExec:
function cStorage:DBExec(a_SQL, a_Callback, a_CallbackParam) local ErrCode = self.DB:exec(a_SQL, a_Callback, a_CallbackParam); if (ErrCode ~= sqlite3.OK) then LOGWARNING(PluginPrefix .. "Error " .. ErrCode .. " (" .. self.DB:errmsg() .. ") while processing SQL command >>" .. a_SQL .. "<<" ); return false; end return true; end
Actually my main issue is how to insert a table into a table. so you get th nested table. This doesnt seem to work with "table.insert(myTable, insertTable)"