Bug when using CAST or CONVERT in stored procedure

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
kanoop
Posts: 6
Joined: Tue 29 Apr 2014 20:42

Bug when using CAST or CONVERT in stored procedure

Post by kanoop » Mon 07 Dec 2015 12:42

I am writing a stored procedure that needs to select columns and cast them using a reasonably complicated cast.

dbForge complains that the type specifier is unexpected and refuses to compile the procedure.

If I then copy the body of the procedure into HeidiSQL (I am running against MariaDB 10.0.2) it accepts the code and the procedure functions as expected. But in dbForge I cannot save the procedure.

Simplified extract of procedure:

PROCEDURE proc_prf()
BEGIN
SELECT
ltim,
CONVERT(((ltim-186857010)/4188), INT) as sample_bin
where <...>

END

dbForge complains about the ", INT" part of the CONVERT function parameters and refuses to update the procedure.

alexa

Re: Bug when using CAST or CONVERT in stored procedure

Post by alexa » Mon 07 Dec 2015 13:12

Could you please provide us a screenshot of the error?

You can reply straight to our support system at supportATdevartDOTcom

kanoop
Posts: 6
Joined: Tue 29 Apr 2014 20:42

Re: Bug when using CAST or CONVERT in stored procedure

Post by kanoop » Mon 07 Dec 2015 14:06

I've just emailed it to you.

alexa

Re: Bug when using CAST or CONVERT in stored procedure

Post by alexa » Mon 07 Dec 2015 14:20

Thank you for the reply.

Could you please also resend it to alexaATdevartDOTcom?

kanoop
Posts: 6
Joined: Tue 29 Apr 2014 20:42

Re: Bug when using CAST or CONVERT in stored procedure

Post by kanoop » Mon 07 Dec 2015 14:29

Done

alexa

Re: Bug when using CAST or CONVERT in stored procedure

Post by alexa » Mon 07 Dec 2015 17:09

Thank you for the reply.

We have received your e-mail and are currently investigating this issue. We will answer you as soon as possible.

Post Reply