MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:June 25 2008 5:22pm
Subject:Re: bzr commit into mysql-5.1 branch (holyfoot:2672) Bug#35916
View as plain text  
Hi!

On Jun 20, Alexey Botchkov wrote:
> #At file:///home/hf/work/mysql_common/mysql-5.1-35916/
> 
>  2672 Alexey Botchkov	2008-06-20
>       Bug#35916 logging to stderr in a UDF does not work if MySQL runs
>       as a service.
>       
>       When MySQL works as a service on Windows fprintf(stderr,..)
>       doesn't work in dll.  Besides writing to the errlog with the
>       plain fprintf(stderr, ) doesn't work well - we need to provide
>       sql_print_error function somehow.  So this function is provided
>       by calling setup_log_function() from the udf's library.

No, please.
This is not a fix for a bug - bugreport says "logging to stderr in a UDF
does not work if MySQL is run as service", and you don't fix *that*.

You're trying to fix the original problem, not the reported one -
namely, that UDFs cannot write to the error log. But for this problem we
have a solution in WL#2940. I don't think it makes sense to extend old
UDF API by adding a partial and incompatible solution. And, in any case,
it cannot be considered a bugfix.

If you have any fix for a reported problem (writing to stderr), I'm all
ears. Otherwise I suggest to document the definiency and close the
bugreport.

Regards / Mit vielen Grüssen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Principal Software Engineer/Server Architect
/_/  /_/\_, /___/\___\_\___/  Sun Microsystems GmbH, HRB München 161028
       <___/                  Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring
Thread
bzr commit into mysql-5.1 branch (holyfoot:2672) Bug#35916Alexey Botchkov20 Jun
  • Re: bzr commit into mysql-5.1 branch (holyfoot:2672) Bug#35916Sergei Golubchik25 Jun
  • Re: bzr commit into mysql-5.1 branch (holyfoot:2672) Bug#35916Alexey Botchkov1 Jul