Closed didasy closed 10 years ago
I have tried to do this
local n, err = sessions:update({ username = username }, { $set = { sessionid = base32 } }, 1, 0, 1)
But it returned this unexpected symbol near '$'
unexpected symbol near '$'
So how do I do this correctly?
Ok, I can do this:
local test = {} test['$set'] = { sessionid = base32 } local n, err = sessions:update({ username = username }, test, 1, 0, 1)
I hope there is a full documentation soon...
I have tried to do this
But it returned this
unexpected symbol near '$'
So how do I do this correctly?