can i overload a function
Posted by: Kshitij
Date: September 26, 2005 09:56AM

hi

can i overload a function that already exists in mysql ?

i need to overload the datediff function of mysql.
the datediff function takes 2 date values as arguments and returns the difference in no. of days.
i need to overload it so that it takes 3 arguments, the extra argument being an interval argument (month/year/minutes..). The interval argument determines the return format of the difference in the 2 dates.

please note that the timestampdiff() function would satisfy my requirements but i need the datediff function to perform the same operation.

any help would be appreciated.

thanks

kshitij

Options: ReplyQuote


Subject
Written By
Posted
can i overload a function
September 26, 2005 09:56AM


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.