1. 29 Apr, 2011 2 commits
  2. 26 Apr, 2011 1 commit
    • kevin.lewis@oracle.com's avatar
      Bug#60309 - Bug#12356829: MYSQL 5.5.9 FOR MAC OSX HAS BUG WITH FOREIGN KEY CONSTRAINTS · 6593ca56
      kevin.lewis@oracle.com authored
      The innoDB global variable srv_lower_case_table_names is set to the value of lower_case_table_names declared in mysqld.h server in ha_innodb.cc.  Since this variable can change at runtime, it is reset for each handler call to ::create, ::open, ::rename_table & ::delete_table.
      
      But it is possible for tables to be implicitly opened before an explicit handler call is made when an engine is first started or restarted.  I was able to reproduce that with the testcase in this patch on a version of InnoDB from 2 weeks ago.  It seemed like the change buffer entries for the secondary key was getting put into pages after the restart.  (But I am not sure, I did not write down the call stack while it was reproducing.)  In the current code, the implicit open, which is actually a call to dict_load_foreigns(), does not occur with this testcase.
      
      The change is to replace srv_lower_case_table_names by an interface function in innodb.cc that retrieves the server global variable when it is needed.
      6593ca56
  3. 21 Apr, 2011 5 commits
  4. 20 Apr, 2011 6 commits
  5. 18 Apr, 2011 6 commits
  6. 16 Apr, 2011 3 commits
  7. 15 Apr, 2011 9 commits
    • Bjorn Munch's avatar
      null upmerge · ae145b6d
      Bjorn Munch authored
      ae145b6d
    • Bjorn Munch's avatar
      merge from 5.5 main · f3203f5a
      Bjorn Munch authored
      f3203f5a
    • Bjorn Munch's avatar
      merge from 5.1 main · 19add93d
      Bjorn Munch authored
      19add93d
    • Alexander Nozdrin's avatar
      A patch for Bug#11763166 (55847: SHOW WARNINGS returns empty · 506ff594
      Alexander Nozdrin authored
      result set when SQLEXCEPTION is active.
      
      The problem was in a hackish THD::no_warnings_for_error attribute.
      When it was set, an error was not written to Warning_info -- only
      Diagnostics_area state was changed. That means, Diagnostics_area
      might contain error state, which is not present in Warning_info.
      
      The user-visible problem was that in some cases SHOW WARNINGS
      returned empty result set (i.e. there were no warnings) while
      the previous SQL statement failed. According to the MySQL
      protocol errors must be presented in warning list.
      
      The main idea of this patch is to remove THD::no_warnings_for_error.
      There were few places where it was used:
        - sql_admin.cc, handling of REPAIR TABLE USE_FRM.
        - sql_show.cc, when calling fill_schema_table_from_frm().
        - sql_show.cc, when calling fill_table().
      The fix is to either use internal-error-handlers, or to use
      temporary Warning_info storing warnings, which might be ignored.
      
      This patch is needed to fix Bug 11763162 (55843).
      506ff594
    • Sergey Glukhov's avatar
      5.1 -> 5.5 merge · df28a9d8
      Sergey Glukhov authored
      df28a9d8
    • Sergey Glukhov's avatar
      Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U · 12a6e0d9
      Sergey Glukhov authored
      Some multibyte sequences could be considered by my_mbcharlen() functions
      as multibyte character but more exact my_ismbchar() does not think so.
      In such a case this multibyte sequences is pushed into 'stack' buffer which
      is too small to accommodate the sequence.
      The fix is to allocate stack buffer in
      compliance with max character length.
      12a6e0d9
    • Bjorn Munch's avatar
      upmerge 12351213,12360195 · af6a02c7
      Bjorn Munch authored
      af6a02c7
    • Bjorn Munch's avatar
      Bug #12360195 MTR DOES NOT IGNORE TABS IN EXPERIMENTAL FILE · 331058bc
      Bjorn Munch authored
      Instead of just filtering space, filter white space (\s)
      I left the default.experimental file as is, with tabs.
      331058bc
    • Tor Didriksen's avatar
      Merge fix for Bug#11765713 from 5.1 · 73c8173f
      Tor Didriksen authored
      73c8173f
  8. 14 Apr, 2011 8 commits