1. 30 Jan, 2009 4 commits
  2. 29 Jan, 2009 14 commits
  3. 28 Jan, 2009 18 commits
    • Sergey Petrunia's avatar
      Merge · 8731a7c2
      Sergey Petrunia authored
      8731a7c2
    • Sergey Petrunia's avatar
      BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result · a9608b19
      Sergey Petrunia authored
      Item_in_optimizer::is_null() evaluated "NULL IN (SELECT ...)" to NULL regardless of
      whether subquery produced any records, this was a documented limitation.
      
      The limitation has been removed (see bugs 8804, 24085, 24127) now
      Item_in_optimizer::val_int() correctly handles all cases with NULLs. Make
      Item_in_optimizer::is_null() invoke val_int() to return correct values for
      "NULL IN (SELECT ...)".
      
      
      mysql-test/r/subselect.result:
        BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result
        - Testcase
      mysql-test/t/subselect.test:
        BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result
        - Testcase
      a9608b19
    • Gleb Shchepa's avatar
      b135bcab
    • Gleb Shchepa's avatar
      Bug #39069: <row constructor> IN <table-subquery> seriously · 334e249f
      Gleb Shchepa authored
                  messed up
      
      "ROW(...) IN (SELECT ... FROM DUAL)" always returned TRUE.
      
      Item_in_subselect::row_value_transformer rewrites "ROW(...)
      IN SELECT" conditions into the "EXISTS (SELECT ... HAVING ...)"
      form.
      For a subquery from the DUAL pseudotable resulting HAVING
      condition is an expression on constant values, so further
      transformation with optimize_cond() eliminates this HAVING
      condition and resets JOIN::having to NULL.
      Then JOIN::exec treated that NULL as an always-true-HAVING
      and that caused a bug.
      
      To distinguish an optimized out "HAVING TRUE" clause from
      "HAVING FALSE" we already have the JOIN::having_value flag.
      However, JOIN::exec() ignored JOIN::having_value as described
      above as if it always set to COND_TRUE.
      
      The JOIN::exec method has been modified to take into account
      the value of the JOIN::having_value field.
      
      
      mysql-test/r/subselect3.result:
        Added test case for bug #39069.
      mysql-test/t/subselect3.test:
        Added test case for bug #39069.
      sql/sql_select.cc:
        Bug #39069: <row constructor> IN <table-subquery> seriously
                    messed up
        
        The JOIN::exec method has been modified to take into account
        the value of the JOIN::having_value field.
      334e249f
    • Davi Arnaut's avatar
      Merge from 5.0-bugteam · a931ac09
      Davi Arnaut authored
      a931ac09
    • Magnus Svensson's avatar
      Merge · 87bbeddb
      Magnus Svensson authored
      87bbeddb
    • Magnus Svensson's avatar
      WL#4189 mtr.pl v2 · 818557b2
      Magnus Svensson authored
       - Fix faulty regex used for filtering out suspicious warnings, causing
         warnings/errors from previous tests to be reported
      818557b2
    • Davi Arnaut's avatar
      Remove test case for bug 40264. · aa0641dc
      Davi Arnaut authored
      Dirty close tricky does not work on Windows.
      
      mysql-test/r/query_cache_notembedded.result:
        Remove test case result.
      mysql-test/t/query_cache_notembedded.test:
        Remove test case.
      aa0641dc
    • Luis Soares's avatar
      Disabled test main.innodb_bug39438: · a95e5e01
      Luis Soares authored
      BUG#42383 2009-01-28 lsoares 
      "This fails in embedded and on windows. Note that this test is not run 
      on windows and on embedded in PB for main trees currently"
      a95e5e01
    • Georgi Kodinov's avatar
      merged bug 42366 to 5.1-bugteam · 5e84d00a
      Georgi Kodinov authored
      5e84d00a
    • Alfranio Correia's avatar
      BUG#35583 mysqlbinlog replay fails with ERROR 1146 when temp tables are used · 23d032c3
      Alfranio Correia authored
            
      When using CREATE TEMPORARY TABLE LIKE to create a temporary table, 
      or using TRUNCATE to delete all rows of a temporary table, they 
      did not set the tmp_table_used flag, and cause the omission of
      "SET @@session.pseudo_thread_id" when dumping binlog with mysqlbinlog,
      and cause error when replay the statements.
            
      This patch fixed the problem by setting tmp_table_used in these two
      cases. (Done by He Zhenxing 2009-01-12)
      
      
      mysql-test/suite/binlog/r/binlog_tmp_table.result:
        Add test case for BUG#35583
      mysql-test/suite/binlog/t/binlog_tmp_table.test:
        Add test case for BUG#35583
      sql/sql_delete.cc:
        set thd->tmp_table_used when truncate temporary table
      sql/sql_table.cc:
        set thd->tmp_table_used when using create like to create temporary tables
      23d032c3
    • Georgi Kodinov's avatar
      Bug #42366: server-cert.pem expired: "Not After : Jan 27 08:54:13 2009 GMT" · 06e18528
      Georgi Kodinov authored
            
      Re-generated the PKI files needed.
      Removed the ones that are not needed.
      Updated the tests to reference the correct SSL subject.
      
      mysql-test/r/openssl_1.result:
        Bug #42366: Updated the tests to reference the correct SSL subject
      mysql-test/std_data/cacert.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/client-cert.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/client-key.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/server-cert-des.pem:
        Bug #42366: Removed the ones that are not needed.
      mysql-test/std_data/server-cert.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/server-key-des.pem:
        Bug #42366: Removed the ones that are not needed.
      mysql-test/std_data/server-key.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/server8k-cert.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/std_data/server8k-key.pem:
        Bug #42366: Re-generated the PKI files needed.
      mysql-test/t/openssl_1.test:
        Bug #42366: Updated the tests to reference the correct SSL subject
      06e18528
    • Bjorn Munch's avatar
      merge · e9b36512
      Bjorn Munch authored
      e9b36512
    • Bjorn Munch's avatar
      Bug #42216 mysqltest: Use of diff belonging to current OS, with wrong option for Solaris · 36118ca6
      Bjorn Munch authored
      Check for existence of diff fails on Solaris due to unsupported "-v"
      Fix is to do this check only on Windows where it was needed
      36118ca6
    • Satya B's avatar
      Fix for BUG#39886 - Table full for MEMORY table is not written into error log · fe75e52c
      Satya B authored
      When a MEMORY table is full the error is returned to client but not written
      to error log.
      
      Fixed the handler api to write the error mesage to error log when the table is
      full.
      
      Note: No TestCase included as testing the error log is non-trivial.
      
      
      sql/handler.cc:
        Fixed handler::print_error() to write the error message to error log
        when the table is full.
      fe75e52c
    • Alfranio Correia's avatar
      d9ccc5b6
    • Magnus Svensson's avatar
      Bug#42408 Faulty regex for detecting [Warning] and [ERROR] in mysqld error log · f81d05c5
      Magnus Svensson authored
       - Disable the two patterns that previously have been faulty - for now.
      f81d05c5
    • Magnus Svensson's avatar
      WL#4198 mtr.pl v2 · ad94278b
      Magnus Svensson authored
       - Improve error message for "found warnings in server log file"
      ad94278b
  4. 27 Jan, 2009 4 commits
    • Alfranio Correia's avatar
      BUG#36391: "mysqlbinlog creates invalid charset statements" · 0888d7c0
      Alfranio Correia authored
            
      The fix for BUG#20103 "Escaping with backslash does not work as expected"
      was implemented too greedy though in that it not only changes the behavior
      of backslashes within strings but in general, so disabling command shortcuts
      like \G or \C (which in turn leads to Bug #36391: "mysqlbinlog creates invalid charset
      statements").
            
      The fix allows the escaping with backslash to take place only inside a string, 
      thus enabling the execution of command shortcuts and presevering the fix for
      BUG#20103.
      0888d7c0
    • Magnus Svensson's avatar
      WL#4189 mtr.pl v2 · 7855b37c
      Magnus Svensson authored
       - First try LOAD DATA INFILE and fall back to LOAD DATA LOCAL INFILE if
         that fails.
      7855b37c
    • Magnus Svensson's avatar
      WL#4189 mtr.pl v2 · 8a1a3f71
      Magnus Svensson authored
       - Fix the regex for finding core files ie. anything that starts with "core" 
       - Add collection of *.dmp files on windows.
      8a1a3f71
    • Luis Soares's avatar
      auto merge. · 5f8740cb
      Luis Soares authored
      5f8740cb