Settings and activity
2 results found
-
0 votesAdminDevart (_, Devart) responded
Could you please provide us the following information:
1. Version of the MySQL server.
2. CREATE definition of the UDF.
3. The assembly file containing the functions called by the UDF.An error occurred while saving the comment Graham Charles shared this idea · -
20 votesGraham Charles supported this idea ·
Yes, it seems to be a old version bug -- error present in 5.01, not in 5.5. So it'll be MySql's fault, not Devart's...
If you're still interested in seeing it happen, here's the function.
(Oh, and sorry, not a UDF, a stored function. Got my MSSQL/MySql terms mixed up.)
CREATE FUNCTION dateAsString(vDate datetime)
RETURNS char(10) CHARSET latin1
BEGIN
DECLARE ret char(10);
SET ret = CAST(
DATE_FORMAT(vDate, "%Y-%m-%d") AS char(10));
RETURN ret;
END