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
"Invalid cast from 'System.String' to 'System.TimeSpan'." is thrown when getting value of output parameter which its type is TIME #680
Comments
It looks like you might be using a stored procedure with an |
My stored procedure is simply like this CREATE DEFINER=`root`@`%` PROCEDURE `GetTime`(OUT OutTime TIME)
BEGIN
SET OutTime = CURTIME();
END I'm totally new to MySql, so I don't know if I get any mistake. It worked perfectly with MySql.Data-8.0.16 |
Hi there, I experienced the same issue when the data type of OUTPUT parameter is BOOL. The exception said that "Object of type 'System.SByte' cannot be converted to type 'System.Boolean'." when I tried to map the OUTPUT to a Thanks |
When I executed the following script, I saw that the DTD_IDENTIFIER value in SELECT ORDINAL_POSITION, PARAMETER_MODE, PARAMETER_NAME, DTD_IDENTIFIER
FROM information_schema.parameters
WHERE SPECIFIC_SCHEMA = 'DB Name' AND SPECIFIC_NAME = 'Routine Name'
ORDER BY ORDINAL_POSITION;
|
Seem it will be fixed when 782a765 is released @bgrainger may I know when will we have the next release? Thank you in advance |
I'll release 0.57.0-beta9 with this fix soon. The beta versions are tested and reliable enough to run in production; they just haven't shipped as a "stable" release yet due to breaking API changes in this series. |
0.57.0-beta9 is available with this fix. |
I got this exception when trying get the output value of TIME
The text was updated successfully, but these errors were encountered: