Closed Krelsis closed 3 years ago
Using version 9.7.0-beta-7, However, issue was replicable on 9.6.1.
You are missing a : in the query.start() line. i.e. it should be
preparedQuery:start()
Otherwise the preparedQuery does not get passed to the start function and mysqloo does not know which query you started.
Apologies, that's my fault, didn't realise I wasn't using it as a meta method, to have tried so many things but not check whether I was using a metamethod and not a method, for shame... This is why you shouldn't do any dev work 16 hours straight :D
I appreciate the swift reply, silly mistake though it may be, probably should have slept on it rather than rushing to a github issue.
Precursor: Connection to the local database has been succesfully established utilising :
I have written a method to prepare a query based on the following object shown in JSON for reference.
Example of function being called, JSON representation of query parameter seen above.
By utilisation of PrintTable and various prints throughout the above method, I can determine that each parameter is being set properly, OnSuccess and OnError successfully being set. However as soon as start() is invoked, it errors with bad argument #1 to 'start' (table expected, got no value).
For reference, if I were to provide an empty table
start({})
the error is [MySQLOO] Expected MySQLOO table.Utilising PrintTable I can see that preparedQuery at the time of invocation is :
All examples indicate that no parameters are required for the start() method. Am I approaching this incorrectly?