On Fri, Apr 06, 2001 at 04:52:21PM +0300, Sinisa Milivojevic wrote:
> 
> To solve the above you have also to malloc a pointer in _init function
> and free it in _end function.

Great, works like a charm. Just to make sure: is it OK to use
my_malloc to allocate and free to free, or should I use some other
functions to make MySQL happy in the long run?

Maybe a little note in the MySQL manual would be nice, next to the

        result is a buffer at least 255 bytes long.

reading like

        If your result will be bigger, you _have_ to allocate your own
        buffer (use my_malloc) and return that instead. Free the
        buffer in _end.

Thanks,

-- 
------------------------------------------------------------------------
 Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
   .project: Perl, DBI, Oracle, MySQL, auth. WWW servers, DBD::XBase.
------------------------------------------------------------------------

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to