[EMAIL PROTECTED] writes:
 > >Description:
 > 
 > UDF working with strings longer than (I believe) 255 bytes kills
 > the server. Even if the initid->max_length is set to the length of
 > the string that will be returned, as the manual suggests.
 > 
 > Please not that in this case, no additional memory is needed -- the
 > function just copies the input to output and expects that MySQL will
 > be able to process the result properly. It doesn't seem to be the
 > case.
 > 
 > There may be a bug in my code but I saw a couple of others reporting
 > the same thing, so I've made the function as small as possible to
 > show the behaviour.
 > 
 > I'd appreciate a copy of the response since I read the mysql lists
 > only as digests.
 > 
 > Jan Pazdziora
 > [EMAIL PROTECTED]


Hi!

To solve the above you have also to malloc a pointer in _init function
and free it in _end function.


Regards,

Sinisa

      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
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