When importing a database from a small local library. I found a slight bug related to the different logical interpretation between LUA and Hollywood.
Sqlite: Bug related to the difference in interpretation of the NIL between Lua and Hollywood.
In case a field in a database has a Null value (Permitted in SQL), Lua perceives it/transforms it into a NIL(LUA)
Hollywood receives the NIL value and turns into a NIL (Hollywood) which destroys the variable it affects, giving an error that the variable does not exist.
Lua and Hollywood therefore behave differently. (Tested on WIN/LINUX and LUA)
Code: Select all
/* Test Code Hollywood*/
@require "sqlite3"
local db = sqlite3.open("Database/MundoBIB.db")
for row in db:nrows("SELECT * FROM boeken")
debugprint(row["ID_LIVRE"].." : "..row["TITRE_LIVRE"])
next
WaitLeftMouse