1. 27 Nov, 2008 11 commits
    • Ingo Struewing's avatar
      merge · 9a113922
      Ingo Struewing authored
      9a113922
    • Sergey Glukhov's avatar
      5.0-bugteam->5.1-bugteam merge · fdd021dd
      Sergey Glukhov authored
      fdd021dd
    • Sergey Glukhov's avatar
      Bug#37284 Crash in Field_string::type() · 8a5273b8
      Sergey Glukhov authored
      The bug is repeatable with latest(1.0.1) InnoDB plugin on Linux, Win,
      If MySQL is compiled with valgrind there are errors about
      using of uninitialized variable(orig_table).
      The fix is to set field->orig_table correct value.
      
      
      mysql-test/r/innodb_mysql.result:
        test result
      mysql-test/t/innodb_mysql.test:
        test case
      sql/sql_base.cc:
        set field->orig_table to 'table' value because it may be bogus and
        it leads to crash on Field_string::type() function.
      8a5273b8
    • Sergey Glukhov's avatar
      5.0-bugteam->5.1-bugteam merge · 1bf0e017
      Sergey Glukhov authored
      1bf0e017
    • Sergey Glukhov's avatar
      removed unused variable · 3abcbf27
      Sergey Glukhov authored
      3abcbf27
    • Sergey Glukhov's avatar
      5.0-bugteam->5.1-bugteam merge · d7042b59
      Sergey Glukhov authored
      d7042b59
    • Sergey Glukhov's avatar
      Bug#37460 Assertion failed: !table->file || table->file->inited == handler::NONE · b241dc21
      Sergey Glukhov authored
      enable uncacheable flag if we update a view with check option
      and check option has a subselect, otherwise, the check option
      can be evaluated after the subselect was freed as independent
      (See full_local in JOIN::join_free())
      
      
      mysql-test/r/subselect.result:
        test result
      mysql-test/t/subselect.test:
        test case
      sql/mysql_priv.h:
        added UNCACHEABLE_CHECKOPTION flag
      sql/sql_update.cc:
        enable uncacheable flag if we update a view with check option
        and check option has a subselect, otherwise, the check option
        can be evaluated after the subselect was freed as independent
        (See full_local in JOIN::join_free())
      b241dc21
    • Sergey Glukhov's avatar
      5.0-bugteam->5.1-bugteam merge · 6396251c
      Sergey Glukhov authored
      6396251c
    • Sergey Glukhov's avatar
      Bug#40365 Prepared statements may insert invalid dates. · 842b9cc4
      Sergey Glukhov authored
      set DATE|DATETIME value to 0 if ALLOW_INVALID_DATES sql_mode is not enabled.
      
      
      sql/field.cc:
        set DATE|DATETIME value to 0 if ALLOW_INVALID_DATES sql_mode is not enabled.
      tests/mysql_client_test.c:
        test case
      842b9cc4
    • Sergey Glukhov's avatar
      Bug#34825 perror on windows doesn't know about win32 error codes · 03a5f833
      Sergey Glukhov authored
      extended perror to enable printing of Win32 system errors
      
      
      extra/perror.c:
        extended perror to enable printing of Win32 system errors
      mysql-test/r/perror-win.result:
        test result
      mysql-test/t/perror-win.test:
        test case
      03a5f833
    • Ingo Struewing's avatar
      Bug#28234 - global/session scope - documentation vs implementation · add7bd63
      Ingo Struewing authored
      Post-pushbuild fix.
      
      - Windows does not have 'socket' system variable.
      - Compiler warning in sql/slave.cc
      
      mysql-test/r/variables.result:
        Bug#28234 - global/session scope - documentation vs implementation
        Updated test result.
      mysql-test/t/variables.test:
        Bug#28234 - global/session scope - documentation vs implementation
        Removed test for 'socket' variable. Windows doesn't have it.
      sql/slave.cc:
        Bug#28234 - global/session scope - documentation vs implementation
        Changed type of constant to avoid a compiler warning.
      add7bd63
  2. 26 Nov, 2008 6 commits
  3. 25 Nov, 2008 13 commits
  4. 24 Nov, 2008 7 commits
  5. 22 Nov, 2008 2 commits
  6. 21 Nov, 2008 1 commit
    • Ingo Struewing's avatar
      Bug#28234 - global/session scope - documentation vs implementation · 37c85fc4
      Ingo Struewing authored
      Several system variables did not behave like system variables should do.
      When trying to SET them or use them in SELECT, they were reported as
      "unknown system variable". But they appeared in SHOW VARIABLES.
      
      This has been fixed by removing the "fixed_vars" array of variables
      and integrating the variables into the normal system variables chain.
      All of these variables do now behave as read-only global-only
      variables. Trying to SET them tells they are read-only, trying to
      SELECT the session value tells they are global only. Selecting the
      global value works. It delivers the same value as SHOW VARIABLES.
      
      
      mysql-test/r/variables-notembedded.result:
        Bug#28234 - global/session scope - documentation vs implementation
        New test result.
      mysql-test/r/variables.result:
        Bug#28234 - global/session scope - documentation vs implementation
        New test result.
      mysql-test/t/variables-notembedded.test:
        Bug#28234 - global/session scope - documentation vs implementation
        Added a test for each moved variable that is not present in an
        embedded server.
      mysql-test/t/variables.test:
        Bug#28234 - global/session scope - documentation vs implementation
        Added a test for each moved variable that is also present in an
        embedded server.
      sql/item_func.cc:
        Bug#28234 - global/session scope - documentation vs implementation
        Added SHOW_BOOL to some Item_func_get_system_var methods.
      sql/set_var.cc:
        Bug#28234 - global/session scope - documentation vs implementation
        Moved all variables from the "fixed_vars" array into the normal
        system variables chain by using the new variable class sys_var_const.
        Removed the fixed_show_vars array and its initialization in
        enumerate_sys_vars().
        Removed mysql_append_static_vars(), which added fixed_vars arrays
        to the fixed_show_vars array.
      sql/set_var.h:
        Bug#28234 - global/session scope - documentation vs implementation
        Added the new system variable class sys_var_const.
        Removed declaration of mysql_append_static_vars().
      sql/slave.cc:
        Bug#28234 - global/session scope - documentation vs implementation
        Moved the definition of show_slave_skip_errors() from sql_repl.cc
        to here and renamed it to print_slave_skip_errors().
        Changed print_slave_skip_errors() to create a static buffer with
        a printable version of the error numbers set.
        Added a call of print_slave_skip_errors() to init_slave_skip_errors().
      sql/slave.h:
        Bug#28234 - global/session scope - documentation vs implementation
        Added declaration of slave_skip_error_names.
      sql/sql_repl.cc:
        Bug#28234 - global/session scope - documentation vs implementation
        Moved all variables from the "fixed_vars" array into the normal
        system variables chain by using the new variable class sys_var_const.
        Moved the definition of show_slave_skip_errors() to slave.cc and
        modified it to compute the string once at server initialization only.
        Removed the call to mysql_append_static_vars().
      37c85fc4