Hi all. I created a simple database and I’m trying to find it that way.
In simulator is everything ok, but on phone the program stops the search without notice any error.
Text “Test is DONE” is not displayed in the console. But application further works.
What am I doing wrong ?
local path = system.pathForFile( "userdata.db", system.DocumentsDirectory ) local db = sqlite3.open( path ) if fileExist("userdata.db") then print ("database is open") flg = false sel = [[SELECT \* FROM test WHERE user\_id = ']]..t["user\_id"]..[[';]] for row in db:nrows(sel) do flg = true end print ("Test is DONE") end