Hi,
I created a table called horses using Lita, and put in a record etc. all fine
When I try to insert a record via corona, it’s not going in…
[lua]local testStr = “INSERT INTO horses VALUES (NULL, ‘Cowboys Revenge’, 0, 20, 16, 8, 20, 1, false, false, true ,true);”
print(testStr)
db:exec(testStr)
for row in db:nrows(“SELECT * FROM horses”) do
local text = row.horsesid…" "…row.name
print(text)
end[/lua]
Now the output I get is
INSERT INTO horses VALUES (NULL, 'Cowboys Revenge', 0, 20, 16, 8, 20, 1, false,
false, true ,true);
10 Medley
11 Faraway Bouncer
So you can see that I can access the horses table, but it just contains the two already there, “Cowboys Revenge” has not been added
Now if I copy and paste the SQL into Lita, it adds the record no problem.
Any idea why I can add it fine with Lita, but the same SQL statement doesn’t add from Corona?
Thanks [import]uid: 38562 topic_id: 11964 reply_id: 311964[/import]