An error occurred fetching the project authors.
  1. 08 Jun, 2006 1 commit
    • unknown's avatar
      Bug#19904: UDF: not initialized *is_null per row · e2495206
      unknown authored
      The is_null value was initialized once and thereafter only set to indicate
      NULL, and never unset to indicate not-NULL.
      
      Now set is_null to false, in addition to only setting it to true when the value 
      in question is null.
      
      
      mysql-test/r/udf.result:
        Add result.
      mysql-test/t/udf.test:
        Add test.
      sql/sql_udf.h:
        Initialize is_null to false before trying to use it, so that historical NULLs
        don't affect our operation.
      e2495206
  2. 27 Apr, 2006 1 commit
    • unknown's avatar
      Add test to mysql-test-run.pl to see if the udf_example.so is availble. Set... · 1bdc15e1
      unknown authored
      Add test to mysql-test-run.pl to see if the udf_example.so is availble. Set envioronment variable UDF_EXAMPLE_LIB if it is.
      Then check in have_udf if that variable is set. Finally use tahe variable when loading the shared library. 
      
      
      mysql-test/include/have_udf.inc:
        Add check if udf_example.so(or similar) is available
      mysql-test/lib/mtr_misc.pl:
        Add funcion "mtr_file_exist" to search for files
      mysql-test/mysql-test-run.pl:
        Add checks to find the udf_example.so library
      mysql-test/r/udf.result:
        Update result
      mysql-test/t/disabled.def:
        Remove udf.test from disabled tests
      mysql-test/t/udf.test:
        Use variable UDF_EXAMPLE_LIB when looking for shared library to load
      mysql-test/r/have_udf_example.require:
        New BitKeeper file ``mysql-test/r/have_udf_example.require''
      1bdc15e1
  3. 10 Mar, 2006 2 commits
    • unknown's avatar
      Update test results for udf · 4fb90983
      unknown authored
      Remove STANDARD  define when compile udf_example.so
      
      
      mysql-test/r/udf.result:
        Update results
      mysql-test/t/udf.test:
        Update test try to create, use and drop a non existing function
        Disable the result from "reverse_lookup" as it is config dependent
      sql/Makefile.am:
        Remove the "STANDARD" define when compiling udf_example.so
      4fb90983
    • unknown's avatar
      Bug#17261 Passing a variable from a stored procedure to UDF crashes mysqld · e52ff555
      unknown authored
       - Update of test toolsand Makefiles to make it possible to test always test udf's as part 
      of the mysql test suite
      
      
      mysql-test/mysql-test-run.pl:
        Add the path where mysqld will udf_example.so used by the udf test
      mysql-test/r/udf.result:
        Update test results
      mysql-test/t/udf.test:
        Update tests
        The "--error 0" directives should actually be changed to the correct error number returned but that error  number is lost. W e do however get the right error message and that is checked in 
        the .result file.
      sql/Makefile.am:
        Build shared library udf_example.so
      sql/share/errmsg.txt:
        Update the max length of %s string from 64 to 128
      sql/sql_udf.cc:
        Add DBUG_PRINT just before dl_open
      sql/udf_example.cc:
        Use isalpha instade of my_isalpha
      e52ff555
  4. 15 Feb, 2006 1 commit
    • unknown's avatar
      Bug#17261 Passing a variable from a stored procedure to UDF crashes mysqld · 79258e44
      unknown authored
       - Pass "buffers[i]" to val_str() in udf_handler::fix_fields insteead of NULL.
       - Add testcase for UDF that will load and run the udf_example functions 
         if available
      
      
      sql/item_func.cc:
        Instead of passing a NULL pointer into val_str, use the "buffers" array to provide a temp string buffer.
      sql/udf_example.cc:
        Spelling error"on"->"one"
      mysql-test/include/have_udf.inc:
        New BitKeeper file ``mysql-test/include/have_udf.inc''
      mysql-test/r/have_udf.require:
        New BitKeeper file ``mysql-test/r/have_udf.require''
      mysql-test/r/udf.result:
        New BitKeeper file ``mysql-test/r/udf.result''
      mysql-test/t/udf.test:
        New BitKeeper file ``mysql-test/t/udf.test''
      79258e44