1. 27 Nov, 2006 1 commit
    • unknown's avatar
      Fix for bug #24261 "crash when WHERE contains NOT IN ('<negative value>') for unsigned column type" · 2e758a7c
      unknown authored
      When calculating a SEL_TREE for the "c_{i-1} < X < c_i" interval, check if the tree returned for the "-inf < X < c_0" interval is NULL
      
      
      mysql-test/r/func_in.result:
        Added testcase for bug #24261 "crash when WHERE contains NOT IN ('<negative value>') for unsigned column type"
      mysql-test/t/func_in.test:
        Added testcase for bug #24261 "crash when WHERE contains NOT IN ('<negative value>') for unsigned column type"
      sql/opt_range.cc:
        When calculating a SEL_TREE for the "c_{i-1} < X < c_i" interval, check if the tree returned for the "-inf < X < c_0" interval is NULL
      2e758a7c
  2. 13 Nov, 2006 1 commit
    • 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
  3. 30 Oct, 2006 3 commits
    • 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
  4. 27 Oct, 2006 1 commit
  5. 26 Oct, 2006 4 commits
    • 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
      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
      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
      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
  6. 25 Oct, 2006 11 commits
  7. 24 Oct, 2006 19 commits
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 0a7a2b8f
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/lib/mtr_cases.pl:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      0a7a2b8f
    • unknown's avatar
    • unknown's avatar
      Merge siva.hindu.god:/usr/home/tim/m/bk/g50 · d4bfae38
      unknown authored
      into  siva.hindu.god:/usr/home/tim/m/bk/50
      
      
      configure.in:
        Auto merged
      mysql-test/r/rename.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      mysys/mf_iocache.c:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/opt_range.cc:
        Auto merged
      sql/opt_range.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/table.cc:
        Auto merged
      myisam/sort.c:
        Manual merge
      mysql-test/r/innodb_mysql.result:
        Manual merge
      mysql-test/t/innodb_mysql.test:
        Manual merge
      d4bfae38
    • unknown's avatar
      Update the reference file for mysql API/ABI for 5.0 · 47b1c7f9
      unknown authored
      
      include/mysql_h_abi.ic:
        Update the reference file for mysql API/ABI
      47b1c7f9
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 80bd3e38
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      BitKeeper/etc/ignore:
        auto-union
      configure.in:
        Auto merged
      include/mysql.h:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      include/Makefile.am:
        Merge, SUPERCLEANFILES and CLEANFILES has dissapeared in 5.0
      80bd3e38
    • unknown's avatar
      Pass --core-file option to mysqld when bootstrapping · f89efeb5
      unknown authored
      
      BitKeeper/etc/ignore:
        Added mysql-test/r/blackhole.log to the ignore list
      f89efeb5
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/bug23427/my41-bug23427 · c84d4bfa
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
      
      
      c84d4bfa
    • unknown's avatar
      WL#3462 Add testing of MySQL client ABI to prevent unintentional ABI breaks · 9c9bf0af
      unknown authored
      BUG#23427 incompatible ABI change in 5.0.26?
         - Use the icheck tool if avaliable and compare the current mysql.h to a version
      controlled reference file 
      
      
      BitKeeper/etc/ignore:
        Added include/check_abi include/mysql_h.ic to the ignore list
      configure.in:
        Look for icheck in configure
      include/Makefile.am:
        Add rule to build mysql_h.ic if icheck is avaliable
        Add rule to compare mysql_h.ic to the version
        controlled reference file mysql_h_abi.ic
      include/mysql.h:
        Add comment about taking care when editing mysql.h
        Add example how to add reserved fiels in the structs to
        allow for features to be added without breaking ABI
      include/mysql_h_abi.ic:
        Add new file describing the libmysqlclient ABI used as a reference to detect ABI breakage
      9c9bf0af
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · fa6d7c50
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      fa6d7c50
    • unknown's avatar
      Remove debug printout · c7cedcd6
      unknown authored
      c7cedcd6
    • unknown's avatar
      Bug#23037 Bug in field "Default" of query "SHOW COLUMNS FROM table" · 7941fdd0
      unknown authored
       - Fix check in mysql_client_test to reflect the change of datatype
         for DEFAULT column
      
      
      tests/mysql_client_test.c:
        Update check of datatype for field DEFAULT returned from "explain"
        as datatype has changed after patch for bug 23037
      7941fdd0
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 01290bee
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      tests/mysql_client_test.c:
        Remove the fflush(NULL) and instead explicitly fflush stdout and then stderr
      01290bee
    • unknown's avatar
      Run mysql_client_test without --silent · 297d968a
      unknown authored
      Flush both stdout and stderr before abort'ing mysql_client_test
      
      
      mysql-test/mysql-test-run.pl:
        Run mysql_client_test wihtout --silent flag
      tests/mysql_client_test.c:
        Before aborting mysql_client_test in die, make sure
        to first flush stdout and finally after the error message 
        has been printed also fflush stderr
      297d968a
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · 0dac6c35
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      0dac6c35
    • unknown's avatar
      Fix spelling errors in test files · 1023e010
      unknown authored
      
      mysql-test/r/mysqldump-max.result:
        Update test result after fix of spelling error
      mysql-test/r/rpl_trigger.result:
        Update test result after fix of spelling error
      mysql-test/r/type_newdecimal.result:
        Update test result after fix of spelling error
      mysql-test/t/mysqldump-max.test:
        Fix spelling error "disable_warnings"
        Write shorter "drop table..."
      mysql-test/t/rpl_trigger.test:
        Fix spelling error, there is no --ignore_warnings
      mysql-test/t/type_newdecimal.test:
        Fix spelling error
      1023e010
    • unknown's avatar
      Add analyze_testcase_failure which is called when mysqltest has failed · e3936b10
      unknown authored
      with error 1 and we are running with --force
      The specific "analyze" code is enclosed in a .test file fwich can easily
      be modified to be more advanced 
      
      
      mysql-test/mysql-test-run.pl:
        Attempt to run some quick queries to analyze the failure when mysqltest returns 1 indicating test has failed
        Initially only code to analyze "could not sync with master" is added as that is a blackbox
        and all problems looks the same
      mysql-test/include/analyze_failure_sync_with_master.test:
        New BitKeeper file ``mysql-test/include/analyze_failure_sync_with_master.test''
      e3936b10
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint · c9ef0344
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      c9ef0344
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · 752e5f1e
      unknown authored
      into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
      
      
      752e5f1e
    • unknown's avatar