1. 13 Nov, 2006 2 commits
    • unknown's avatar
      Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug18761/my50-bug18761 · 3d021148
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/bug18761/my51-bug18761
      
      
      BitKeeper/etc/collapsed:
        auto-union
      mysql-test/r/udf.result:
        Auto merged
      mysql-test/t/udf.test:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/udf_example.c:
        Auto merged
      3d021148
    • unknown's avatar
      Bug#18761: constant expression as UDF parameters not passed in as constant · 154c6e06
      unknown authored
      The code that set up data to be passed to user-defined functions was very
      old and analyzed the "Type" of the data that was passed into the UDF, when
      it really should analyze the "return_type", which is hard-coded for simple
      Items and works correctly for complex ones like functions.
      ---
      Added test at Sergei's behest.
      
      
      mysql-test/r/udf.result:
        Verify that various arguments work.
        ---
        Added test at Sergei's behest.
      mysql-test/t/udf.test:
        Verify that various arguments work.
        ---
        Added test at Sergei's behest.
      sql/item_func.cc:
        For function-Items, test whether it is constant and set the struct members 
        for the UDF parameter appropriately.
        
        Replace tabs with spaces in affected code.
      sql/udf_example.c:
        Include a simple function that is useful in testing.
      154c6e06
  2. 30 Oct, 2006 4 commits
    • unknown's avatar
      Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint · 2e35e448
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Auto merged
      mysql-test/t/ctype_utf8.test:
        Auto merged
      mysql-test/include/mix1.inc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/mysqld.cc:
        Manual merge
      storage/myisam/sort.c:
        Manual merge
      2e35e448
    • unknown's avatar
      Improve comments around FLUSH STATUS · e948c64f
      unknown authored
      It's not possible to flush the global status variables in 5.0
      Update test case so it works by recording the value of handle_rollback
      before and compare it to the value after
      
      
      mysql-test/r/innodb_mysql.result:
        Update result file
      mysql-test/t/innodb_mysql.test:
        It's not possible to reset the global status variables in 5.0 so intead its value
        is recorded and compared to the after value.
        It should not have changed.
      sql/mysqld.cc:
        Improve comments
      sql/set_var.cc:
        Improve comments
      sql/sql_class.cc:
        Improve comments
      sql/sql_class.h:
        Improve comments
      e948c64f
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · c1b29d29
      unknown authored
      into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      c1b29d29
  3. 27 Oct, 2006 4 commits
  4. 26 Oct, 2006 13 commits
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1-new-maint · ab619991
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      sql/sql_select.cc:
        Auto merged
      ab619991
    • unknown's avatar
      Update for 5.1 · 931aa19a
      unknown authored
      
      include/mysql_h_abi.ic:
        Update for 5.1, don't include the info_buffer it should be an error
      931aa19a
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · b2ea3624
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/t/ctype_utf8.test:
        Auto merged
      b2ea3624
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint · 2215e7b1
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      include/Makefile.am:
        Manual merge
      2215e7b1
    • unknown's avatar
      Bug#23427 incompatible ABI change in 5.0.26? · fc72e762
      unknown authored
       - Improve icheck rules in Makefile.am
      
      
      include/Makefile.am:
        Remove m_ctype from BUILT_SOURCES, it has been in bk for a looong time.
        Improve the icheck rules
         - Abort make if icheck fails to compare, very important.
         - Don't include include files from /usr into the icheck file. Avoids problem when running
           icheck on different machines.
         - If no icheck is availabel, touch the mysql_h.ic file so it exists for "make dist"
      include/mysql_h_abi.ic:
        Remove all include files from /usr, no need to check that!
      fc72e762
    • unknown's avatar
      Post Merge Cleanup · b4649198
      unknown authored
      b4649198
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint · 159226b5
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/mysql.result:
        Auto merged
      mysql-test/t/mysql.test:
        Auto merged
      159226b5
    • unknown's avatar
      Bug#20894 Reproducible MySQL client segmentation fault · 08d43705
      unknown authored
       - Add two null bytes in  "buff" variable allowing us to call
         get_arg two times also for strings longer than sizeof(buff) 
      
      
      client/mysql.cc:
        Make sure there are _two_ zero bytes at the end of buff, to allow 'get_arg' to be
        called twice on long strings. The first time it will mark end of string with a
        zero and the second time it will "skip ahead" to the first zero, and the find the
        second one indicating end of buff.
      mysql-test/r/mysql.result:
        Update test results
      mysql-test/t/mysql.test:
        Add tests for "com_connect" function in mysql
        Add test reported in bug
      08d43705
    • unknown's avatar
      Merge 192.168.0.4:mysql/my51-m-bug18888 · d2709b7a
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint
      
      
      d2709b7a
    • unknown's avatar
      Bug#18888 Trying to overwrite sql/lex_hash.h during build · ed53c394
      unknown authored
       - As a sideeffect of the patch to generate lex_hash.h only once
      on the machine where the source dist was produced, a problem
      was found when compiling a mysqld without partition support - it 
      would crash when looking up the lex symbols due to mismatch between
      lex.h and the generated lex_hash.h
      
       - Remove the ifdef for partition in lex.h 
       - Fix minor problem with"EXPLAIN PARTITION" when not compiled with
         partition(existed also without the above patch)
       - Add test case that will be run when we don't have partition
         support compiled into mysqld
       - Return error ER_FEATURE_DISABLED if user tries to use PARTITION
         when there is no support for it.
      
      
      sql/lex.h:
        There should be no ifdefs of features in lex.h
      sql/sql_class.cc:
        In line with the comment in sql_yacc.yy that we want the same output
        from "EXPLAIN PARTITIONS.." regardless of wheter we have compiled in
        support for partition  or not, remove the ifdef so the extra field
        is added to output if the DESCRIBE_PARTITIONS bit it set. Without
        this patch we get a crash as the code in select_describe believes the
        field is there.
      sql/sql_select.cc:
        Use "const" for the variable as it's a ssigned once and never changes
      sql/sql_yacc.yy:
        Don't allow PARTITION syntax oif there is no suport for partitioning
      mysql-test/r/not_partition.require:
        New BitKeeper file ``mysql-test/r/not_partition.require''
      mysql-test/r/not_partition.result:
        New BitKeeper file ``mysql-test/r/not_partition.result''
      mysql-test/t/not_partition.test:
        New BitKeeper file ``mysql-test/t/not_partition.test''
      ed53c394
    • unknown's avatar
      Bug #14262 SP: DROP PROCEDURE|VIEW (maybe more) write to binlog too late (race cond) · 69f3bb67
      unknown authored
      - Rmove duplicate code to log a "DROP VIEW..", must be a merge miss 
      
      
      sql/sql_view.cc:
        The query should only be logged to binlog once and that is if the drop didn't produce any errors
        Removing the duplicate as that must have been a merge error
      69f3bb67
    • unknown's avatar
      Fix for bug #22158: Errors in init_connect terminate connections silently · ac2f1cca
      unknown authored
      When executing the init_connect statement, thd->net.vio is set to 0, to         
      forbid sending any results to the client. As a side effect we don't log         
      possible errors, either.                                                        
                                                                                      
      Now we write warnings to the error log if an init_connect query                
      fails.                                                                          
      
      
      sql/sql_parse.cc:
        Fix for bug #22158: Errors in init_connect terminate connections silently
        - raise warnings if the init_connect execution fails.
      ac2f1cca
    • unknown's avatar
      BitKeeper/triggers/*crash-protect.pl: Don't print messages if nothing is wrong. · 83ebd23e
      unknown authored
      
      BitKeeper/triggers/pre-outgoing.crash-protect.pl:
        Don't print message if nothing is wrong.
      BitKeeper/triggers/pre-resolve.crash-protect.pl:
        Don't print message if nothing is wrong.
      83ebd23e
  5. 25 Oct, 2006 17 commits