Trouble inserting data into an sqlite3 database
#11
(11-23-2015, 01:34 AM)PureTryOut Wrote:
(11-22-2015, 09:31 AM)DrMasik Wrote: Any questions?

The problem I have now is using a SELECT query: if the result contains data from the database it runs fine, if not, it errors out instead.
Like I said, it breaks on stmt:get_values().

Replace
Code:
stmt:get_values()

to
Code:
local dataCol1;
local dataCol2;

for col1, col2 in stmt:urows() do
  dataCol1 = col1;
  dataCol2 = col2;
end

-- If no cycle dataCol2 == nil and dataCol2 == nil
Reply
Thanks given by:


Messages In This Thread
RE: Trouble inserting data into an sqlite3 database - by DrMasik - 11-23-2015, 02:07 AM



Users browsing this thread: 1 Guest(s)