Is it possible with MDB2 to create mysql user defined function?

From: Date: Sat, 03 May 2008 19:57:21 +0000
Subject: Is it possible with MDB2 to create mysql user defined function?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28861@lists.php.net to get a copy of this message
Hello! I see that there is a function in MDB2_Driver_mysql to list UDF functions but I wonder how can I create my own function? I need to add this simple function to mysql: DROP FUNCTION fnGetDir// CREATE DEFINER=root@localhost FUNCTION fnGetDir(username VARCHAR(50), rh VARCHAR(15) ) RETURNS char(30) CHARSET latin1 BEGIN INSERT INTO TMP_LOGIN_LOG SET username=username, remote_host=rh; RETURN '/upload/ftp'; END But also it is necessary to set delimiter to // and after this function set the delimiter back to ; (this may not be necessary) -- Open Source ALL content management with streaming video http://wiki.sharedlog.com

« previous php.pear.general (#28861) next »