New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching result of stored procedure returns single record #47
Comments
Hi Paul LuaSQL does not guarantee support for stored procedures, but it could Regards, On 2016-05-23 01:04, PaulWasilewski wrote:
|
Hi Tomás, thanks for the quick response. I am using the MySQL driver https://github.com/LuaDist/luasql-mysql. Regards, |
Hi Tomás Unfortunately, I can't figuring out if the MySQL driver supports stored procedures. Can you help? BR, |
Hi Paul It seems that the driver for MySQL don't support multiple results. https://dev.mysql.com/doc/refman/5.7/en/c-api-multiple-queries.html The connection to the database should be opened with a flag indicating
Thus, I think you cannot retrieve multiple results. Besides, it seems Regards, On 2016-06-05 11:22, PaulWasilewski wrote:
|
When I try to fetch the result of a stored procedure it returns only one record.
res, err, errno, sqlstate = db:query("call icenter.queryUserOTHistorySessionRB(4780,'2016-03-01 00:00:00','2016-04-30 23:59:59');");
That's the result:
[{"LogoffTime":"2016-04-14 07:30:00","user_id":4780,"resource_id":1335,"ResourceName":"WTH5401171","InuseTime":54000,"IdleTime":0,"LogonTime":"2016-04-13 16:30:00"}]
Is it true that LuaSQL doesn't support fetching results from stored procedures?
The text was updated successfully, but these errors were encountered: