In one of my scene files I have the following code:
function new()
db:exec( 'update user set highscore=1 where id=1' )
for row in db:nrows("SELECT \* FROM user") do
print('id: '..row.id)
print('highscore: '..row.highscore)
end
initVars()
return localGroup
end
This causes the scene to “crash” and main.lua to be reloaded. What’s interesting is that if I take out the SQL UPDATE statement, the scene runs fine.
Is this a bug with director.lua or am I doing something wrong?
Thanks
[import]uid: 23583 topic_id: 12188 reply_id: 312188[/import]