MySQL Forums
Forum List  »  Connector/ODBC

Re: Mysql ODBC 8.0.17 / Classic ASP / Stored procedures returns always 0 instead of integer
Posted by: Mark Taylor
Date: October 14, 2019 12:45PM

You might want to check your data types in the tables that you are selecting to see if any of the columns in your queried tables match any of those dataTypes that I had mentioned. I only way this because I would imagine that the way Stored Procedures and Prepared Statements is similar The other thing to try that i discovered worked was in the query to CAST the INT column into a CHAR:

SELECT txtStr, CAST(intVal AS CHAR) AS intVal, textStr FROM `testDB`.`test`

and see if that helps return the expected values to your Stored Procedure request...


Mark

Options: ReplyQuote


Subject
Written By
Posted
Re: Mysql ODBC 8.0.17 / Classic ASP / Stored procedures returns always 0 instead of integer
October 14, 2019 12:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.