okay, it’s still happening with singles.
I/Corona ( 5671): k is 5089b5ac9e699e0007000018 !
I/Corona ( 5671): Query SELECT content FROM history WHERE matchid IS 'Match5089b5ac9e699e0007000018'
I/Corona ( 5671): Lua Runtime Error: lua\_pcall failed with status: 2, error message is: near "'Match5089b5ac9e699e0007000018'": syntax error
k as you can see is a really big hexstring that I get back from game minion. I presume it’s a string because print would print it as a decimal number if it was not.
I changed my code to look like this:
function M:loadTable(k)
print("k is", k, "!")
local m = "Match" .. k
local query = [[SELECT content FROM history WHERE matchid IS ']]..m..[[']]
print("Query", query)
--for row in storyboard.db:nrows("SELECT \* FROM test") do
for row in storyboard.db:nrows(query) do
utility.print\_r(row)
local t = json.decode(row.content)
print("OOOO Fetching data", row.content)
return t
end
end
I am now making a new variable called “m” and the results of cat’ing a number to a string should be a string, even though k is being printed as a string not a really big number.
I’m using single’s now and I’m still getting the error. I’m still on the “Its a bug bandwagon” 
I’ll put in an explicit tostring() in to just make sure…
Thoughts?
Rob [import]uid: 19626 topic_id: 32035 reply_id: 128696[/import]