Thomas Kaester(global) writes:
 > Hello everybody,
 > 
 > I have a big UDF problem and I hope that anybody can help me!
 > 
 > In details:
 > 
 > I have developed an UDF which returns a string which is longer than 256
 > characters! But the function only returns the first 256 characters and
 > not the whole string. I checked the UDF_INIT struct but the necessary
 > parameter initid->max_length has the value 65535. This should be enough.
 > Does anyone know if I have to set special buffer parameters? What goes
 > wrong? And what can I do?
 > 
 > Greetings Tom
 > 


Hi!

You will have to allocate that string in _init function and deallocate
it in _deinit 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

  • UDF Problem Thomas Kaester(global)
    • Sinisa Milivojevic

Reply via email to