1. 09 Jul, 2010 5 commits
    • Davi Arnaut's avatar
      e1f748c0
    • Davi Arnaut's avatar
      Bug#45288: pb2 returns a lot of compilation warnings on linux · ed9ffc6b
      Davi Arnaut authored
      Although the C standard mandates that sprintf return the number
      of bytes written, some very ancient systems (i.e. SunOS 4)
      returned a pointer to the buffer instead. Since these systems
      are not supported anymore and are hopefully long dead by now,
      simply remove the portability wrapper that dealt with this
      discrepancy. The autoconf check was causing trouble with GCC.
      ed9ffc6b
    • Davi Arnaut's avatar
      Bug#53445: Build with -Wall and fix warnings that it generates · 4f59204b
      Davi Arnaut authored
      Introduce a MySQL maintainer/developer mode that enables
      a set of warning options for the C/C++ compiler. This mode
      is intended to help improve the overall quality of the code.
      
      The warning options are:
      
      C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Werror"
      CXX_WARNINGS="$C_WARNINGS -Wno-unused-parameter"
      
      Since -Wall is essentially a moving target, autoconf checks
      are not run with warning options enabled, in particualr -Werror.
      This decision might be revisited in the future. The patch also
      fixes a mistake in the makefiles, where automake CXXFLAGS would
      be set to CFLAGS.
      4f59204b
    • Sergey Glukhov's avatar
      5.1-bugteam->trunk-merge merge · 80935b86
      Sergey Glukhov authored
      80935b86
    • Sergey Glukhov's avatar
      Bug#54416 MAX from JOIN with HAVING returning NULL with 5.1 and Empty set · 3c39a562
      Sergey Glukhov authored
      The problem there is that HAVING condition evaluates const
      parts of condition despite the condition has references
      on aggregate functions. Table t1 became const tables
      after make_join_statistics and table1.pk = 1, HAVING is
      transformed into MAX(1) < 7 and taken away from HAVING.
      The fix is to skip evaluation of HAVING conts parts if
      HAVING condition has references on aggregate functions.
      3c39a562
  2. 08 Jul, 2010 2 commits
    • 's avatar
      Auto merge · 38876dc9
      authored
      38876dc9
    • 's avatar
      Postfix bug#48321 · b440125f
      authored
      Fix the memory leak
      b440125f
  3. 07 Jul, 2010 2 commits
    • Georgi Kodinov's avatar
      merge · 15a95344
      Georgi Kodinov authored
      15a95344
    • Georgi Kodinov's avatar
      Addendum to the fix for bug #53095 (failing information_schema.test on windows) · 28004bd5
      Georgi Kodinov authored
      Since the original fix for this bug lowercases the search pattern it's not a 
      good idea to copy the search pattern to the output instead of the real table 
      name found (since, depending on the case mode these two names may differ in 
      case).
      Fixed the infrmation_schema.test failure by making sure the actual table 
      name of an inoformation schema table is passed instead of the lookup pattern
      even when the pattern doesn't contain wildcards.
      28004bd5
  4. 06 Jul, 2010 3 commits
  5. 05 Jul, 2010 4 commits
  6. 04 Jul, 2010 4 commits
    • 's avatar
      Manual merge · b8671789
      authored
      b8671789
    • 's avatar
      Postfix for bug#48321 · 363a2ccc
      authored
      Some test cases set ANSI_QUOTES in sql_mode.
      So we have to use single quotes to quote literal strings.
      363a2ccc
    • 's avatar
      Manul merge · fe6ab9a0
      authored
      fe6ab9a0
    • 's avatar
      The following statements support the CURRENT_USER() where a user is needed. · 42eecc53
      authored
      DROP USER 
      RENAME USER CURRENT_USER() ...
      GRANT ... TO CURRENT_USER()
      REVOKE ... FROM CURRENT_USER()
      ALTER DEFINER = CURRENT_USER() EVENTbut, When these statements are binlogged, CURRENT_USER() just is binlogged
      as 'CURRENT_USER()', it is not expanded to the real user name. When slave 
      executes the log event, 'CURRENT_USER()' is expand to the user of slave 
      SQL thread, but SQL thread's user name always NULL. This breaks the replication.
      
      After this patch, session's user will be written into query log events 
      if these statements call CURREN_USER() or 'ALTER EVENT' does not assign a definer.
      42eecc53
  7. 03 Jul, 2010 4 commits
  8. 02 Jul, 2010 7 commits
  9. 01 Jul, 2010 6 commits
  10. 30 Jun, 2010 3 commits