1. 22 Sep, 2009 12 commits
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 460c6c97
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3092.1.2 [merge]
      > revision-id: joro@sun.com-20090831134035-wndnw04gy8kzogpm
      > parent: anurag.shekhar@sun.com-20090831075609-tkpqu41hxtupdeip
      > parent: joro@sun.com-20090827114042-h55n7qp9990bl6ge
      > committer: Georgi Kodinov <joro@sun.com>
      > branch nick: B46749-5.1-bugteam
      > timestamp: Mon 2009-08-31 16:40:35 +0300
      > message:
      >   automerge
      > ------------------------------------------------------------
      > Use --include-merges or -n0 to see merged revisions.
      460c6c97
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 0cee7a12
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3085 [merge]
      > revision-id: sergey.glukhov@sun.com-20090827105925-j56pdghdzb8nlw3p
      > parent: alfranio.correia@sun.com-20090827093227-9exafl3k6362bvq7
      > parent: sergey.glukhov@sun.com-20090827102219-sgjz0v5t1rfccs14
      > committer: Sergey Glukhov <Sergey.Glukhov@sun.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Thu 2009-08-27 15:59:25 +0500
      > message:
      >   5.0-bugteam->5.1-bugteam merge
      > ------------------------------------------------------------
      > Use --include-merges or -n0 to see merged revisions.
      0cee7a12
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · e06fe916
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3075
      > revision-id: ramil@mysql.com-20090821055535-a5aeas33epokjjnp
      > parent: joro@sun.com-20090820141122-gq6eyozybvar4o4s
      > committer: Ramil Kalimullin <ramil@mysql.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Fri 2009-08-21 10:55:35 +0500
      > message:
      >   Fix for bug #46456 [Ver->Prg]: HANDLER OPEN + TRUNCATE + DROP
      >   (temporary) TABLE, crash
      >   
      >   Problem: if one has an open "HANDLER t1", further "TRUNCATE t1" 
      >   doesn't close the handler and leaves handler table hash in an 
      >   inconsistent state, that may lead to a server crash.
      >   
      >   Fix: TRUNCATE should implicitly close all open handlers.
      >   
      >   Doc. request: the fact should be described in the manual accordingly.
      e06fe916
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · af2dc73f
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3068
      > revision-id: ramil@mysql.com-20090813194928-3djdqvpock0pxhgp
      > parent: li-bing.song@sun.com-20090813024857-1emgf5lhj0zikoj8
      > committer: Ramil Kalimullin <ramil@mysql.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Fri 2009-08-14 00:49:28 +0500
      > message:
      >   Fix for bug #46614: Assertion in show_create_trigger() 
      >   on SHOW CREATE TRIGGER + MERGE table
      >   
      >   Problem: SHOW CREATE TRIGGER erroneously relies on fact
      >   that we have the only underlying table for a trigger
      >   (wrong for merge tables).
      >   
      >   Fix: remove erroneous assert().
      af2dc73f
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 4f1bd338
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3059 [merge]
      > revision-id: martin.hansson@sun.com-20090810140851-aw5peehzdxi4gjja
      > parent: iggy@mysql.com-20090806145453-ion37sfdsldwwjrj
      > parent: martin.hansson@sun.com-20090807115140-7fn6wjx0mrui7zl5
      > committer: Martin Hansson <martin.hansson@sun.com>
      > branch nick: 5.1bt
      > timestamp: Mon 2009-08-10 16:08:51 +0200
      > message:
      >   Merge
      > ------------------------------------------------------------
      > Use --include-merges or -n0 to see merged revisions.
      4f1bd338
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 86981308
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3044.1.3
      > revision-id: kristofer.pettersson@sun.com-20090729224404-hwevly1cbi7gojf0
      > parent: kristofer.pettersson@sun.com-20090729202743-tp9ihd5xavq8eguw
      > committer: Kristofer Pettersson <kristofer.pettersson@sun.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Thu 2009-07-30 00:44:04 +0200
      > message:
      >   Bug#44521 Prepared Statement: CALL p() - crashes: `! thd->main_da.is_sent' failed et.al.
      >   
      >   Fixed wrong prototype declaration which cased build failure on solaris.
      86981308
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 16b9a2a1
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3044.1.1
      > revision-id: kristofer.pettersson@sun.com-20090729200708-cb0td7n9r5md0aa0
      > parent: davi.arnaut@sun.com-20090728195938-qabe9ldm2l4k8xns
      > committer: Kristofer Pettersson <kristofer.pettersson@sun.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Wed 2009-07-29 22:07:08 +0200
      > message:
      >   Bug#44521 Executing a stored procedure as a prepared statement can sometimes cause
      >             an assertion in a debug build.
      >   
      >   The reason is that the C API doesn't support multiple result sets for prepared
      >   statements and attempting to execute a stored routine which returns multiple result
      >   sets sometimes lead to a network error. The network error sets the diagnostic area
      >   prematurely which later leads to the assert when an attempt is made to set a second
      >   server state.
      >   
      >   This patch fixes the issue by changing the scope of the error code returned by
      >   sp_instr_stmt::execute() to include any error which happened during the execution.
      >   To assure that Diagnostic_area::is_sent really mean that the message was sent all
      >   network related functions are checked for return status.
      16b9a2a1
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 324edb26
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3028 [merge]
      > revision-id: davi.arnaut@sun.com-20090715182250-ru0l00nqqlcfqe8n
      > parent: ramil@mysql.com-20090715102544-ejid81yz8k39m2fa
      > parent: kostja@sun.com-20090715170034-kjzpmq3px90pedw7
      > committer: Davi Arnaut <Davi.Arnaut@Sun.COM>
      > branch nick: 44495-5.1
      > timestamp: Wed 2009-07-15 15:22:50 -0300
      > message:
      >   Bug#44495: Prepared Statement: CALL p(<x>) - `thd->protocol == &thd->protocol_text' failed
      >   
      >   Merge Konstantin's patch and add a test case.
      > ------------------------------------------------------------
      > Use --include-merges or -n0 to see merged revisions.
      324edb26
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 8526da59
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3027
      > revision-id: ramil@mysql.com-20090715102544-ejid81yz8k39m2fa
      > parent: anurag.shekhar@sun.com-20090715101345-6n3o8wf8woyaqlwc
      > committer: Ramil Kalimullin <ramil@mysql.com>
      > branch nick: mysql-5.1-bugteam
      > timestamp: Wed 2009-07-15 15:25:44 +0500
      > message:
      >   Addition to #45998 fix, result adjusted.
      8526da59
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 3b738cf4
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 3019.1.3
      > revision-id: ramil@mysql.com-20090714150729-xqv7aicsnoz6epy6
      > parent: jimw@mysql.com-20090713191116-c8qxsrjagzbvbytj
      > committer: Ramil Kalimullin <ramil@mysql.com>
      > branch nick: b45998-5.1-bugteam
      > timestamp: Tue 2009-07-14 20:07:29 +0500
      > message:
      >   Fix for bug#45998: database crashes when running
      >   "create as select" (innodb table)
      >   
      >   Problem: code constructing "CREATE TABLE..." statement
      >   doesn't take into account that current database is not set
      >   in some cases. That may lead to a server crash.
      >   
      >   Fix: check if current database is set.
      3b738cf4
    • MySQL Build Team's avatar
      Backport into build-200909221805-5.1.37sp1 · 4f4f37dc
      MySQL Build Team authored
      > ------------------------------------------------------------
      > revno: 2949.5.6
      > revision-id: jperkin@sun.com-20090824091334-6ktgrhq218vl7zq1
      > parent: joerg@mysql.com-20090821095644-12woawc4d2d3u7k4
      > committer: Jonathan Perkin <jperkin@sun.com>
      > branch nick: mysql-5.1-build
      > timestamp: Mon 2009-08-24 10:13:34 +0100
      > message:
      >   Apply changes from mysql-5.1.38-release clone:
      >   
      >    - Add conditionals for bundled zlib and innodb plugin.
      >    - Apply patch from bug#46834 to install the test suite in RPMs.
      >    - Add plugins to RPMs.  Disable example plugins.
      4f4f37dc
    • unknown's avatar
      Set version number for mysql-5.1.37sp1 release · c9848eea
      unknown authored
      c9848eea
  2. 13 Jul, 2009 5 commits
  3. 12 Jul, 2009 1 commit
  4. 11 Jul, 2009 1 commit
    • Gleb Shchepa's avatar
      Bug #41156: List of derived tables acts like a chain of · cb8fc50b
      Gleb Shchepa authored
                  mutually-nested subqueries
      
      Queries of the form
      
        SELECT * FROM (SELECT 1) AS t1,
                      (SELECT 2) AS t2,...
                      (SELECT 32) AS t32
      
      caused the "Too high level of nesting for select" error
      as if the query has a form
      
        SELECT * FROM (SELECT 1 FROM (SELECT 2 FROM (SELECT 3 FROM...
      
      
      The table_factor parser rule has been modified to adjust
      the LEX::nest_level variable value after every derived table.
      
      
      mysql-test/r/derived.result:
        Added test case for bug #41156.
      mysql-test/t/derived.test:
        Added test case for bug #41156.
      sql/sql_yacc.yy:
        Bug #41156: List of derived tables acts like a chain of
                    mutually-nested subqueries
        
        The select_derived2 parser rule calls mysql_new_select()
        calls push_context() and nest_level++, however only
        the pop_context() was called at the end of derived table
        parsing at the table_factor rule.
        
        The table_factor parser rule has been modified to adjust
        the LEX::nest_level variable value after every derived table.
      cb8fc50b
  5. 10 Jul, 2009 16 commits
    • MySQL Build Team's avatar
      fe54c82d
    • Staale Smedseng's avatar
      Merge from 5.1-bugteam · 23d0c58c
      Staale Smedseng authored
      23d0c58c
    • Georgi Kodinov's avatar
      automerge · 29a8b3d9
      Georgi Kodinov authored
      29a8b3d9
    • Georgi Kodinov's avatar
      automerge · a68884e0
      Georgi Kodinov authored
      a68884e0
    • Georgi Kodinov's avatar
      fbcc7790
    • Georgi Kodinov's avatar
      merge 5.1-main -> 5.1 · 25d76e1d
      Georgi Kodinov authored
      25d76e1d
    • Georgi Kodinov's avatar
      merged 5.0-bugteam->5.1-bugteam · 05166d80
      Georgi Kodinov authored
      05166d80
    • Georgi Kodinov's avatar
      fixed the CPU checking code. · e983aefb
      Georgi Kodinov authored
      e983aefb
    • Georgi Kodinov's avatar
      merge 5.0-main -> 5.0-bugteam · c384d953
      Georgi Kodinov authored
      c384d953
    • Davi Arnaut's avatar
      Bug#21704: Renaming column does not update FK definition · 763fe4d5
      Davi Arnaut authored
      Remove commented-out test case. It has been moved to innodb_bug21704.test
      763fe4d5
    • Georgi Kodinov's avatar
      Bug #46080: group_concat(... order by) crashes server when · 73bfe38c
      Georgi Kodinov authored
        sort_buffer_size cannot allocate
      
      The NULL return from tree_insert() (on low memory) was not
      checked for in Item_func_group_concat::add(). As a result
      on low memory conditions a crash happens.
      
      Fixed by properly checking the return code.
      73bfe38c
    • Satya B's avatar
      Applying InnoDB snapshot 5.1-ss5488,part 4. Fixes BUG#21704 · 7105d21b
      Satya B authored
      1. BUG#21704 - Renaming column does not update FK definition
      
      2. Changes in mysql-test/include/mtr_warnings.sql so that the testcase
         for BUG#21704 doesn't fail because of the warnings generated.
      
      Detailed revision comments:
      
      r5488 | vasil | 2009-07-09 19:16:44 +0300 (Thu, 09 Jul 2009) | 13 lines
      branches/5.1:
      
      Fix Bug#21704 Renaming column does not update FK definition
      
      by checking whether a column that participates in a FK definition is being
      renamed and denying the ALTER in this case.
      
      The patch was originally developed by Davi Arnaut <Davi.Arnaut@Sun.COM>:
      http://lists.mysql.com/commits/77714
      and was later adjusted to conform to InnoDB coding style by me (Vasil),
      I also added some more comments and moved the bug specific mysql-test to
      a separate file to make it more manageable and flexible.
      
      7105d21b
    • Alexey Kopytov's avatar
      Bug #45796: invalid memory reads and writes when altering merge · 71197947
      Alexey Kopytov authored
                  and base tables 
      
      myrg_attach_children() could reuse a buffer that was allocated 
      previously based on a definition of a child table. The problem 
      was that the child's definition might have been changed, so 
      reusing the buffer could lead to crashes or valgrind errors 
      under some circumstances. 
       
      Fixed by changing myrg_attach_children() so that the 
      rec_per_key_part buffer is reused only when the child table
      have not changed, and reallocated otherwise (the old buffer is 
      deallocated if necessary).
      
      
      include/myisammrg.h:
        Added a pointer to need_compat_check as an argument to
        myrg_attach_children().
      mysql-test/r/merge.result:
        Added a test case for bug #45796.
      mysql-test/t/merge.test:
        Added a test case for bug #45796.
      storage/myisammrg/ha_myisammrg.cc:
        Pass a pointer to need_compat_check to myrg_attach_children().
      storage/myisammrg/myrg_open.c:
        Changed myrg_attach_children() so that the 
        rec_per_key_part buffer is reused only when the child table
        have not changed, and reallocated otherwise (the old buffer 
        is deallocated if necessary).
      71197947
    • Satya B's avatar
      Applying InnoDB snapshot 5.1-ss5488 part3,Fixes BUG#45814 · a3f8eaa6
      Satya B authored
      Detailed revision comments:
      
      r5440 | vasil | 2009-06-30 13:04:29 +0300 (Tue, 30 Jun 2009) | 8 lines
      branches/5.1:
      
      Fix Bug#45814 URL reference in InnoDB server errors needs adjusting to match documentation
      
      by changing the URL from
      http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html to
      http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting-datadict.html
      
      a3f8eaa6
    • Satya B's avatar
      Applying InnoDB snapshot 5.1-ss5488,part 2. Fixes BUG#45749 · 502cfaa5
      Satya B authored
      BUG#45749 - Race condition in SET GLOBAL innodb_commit_concurrency=DEFAULT
      
      Detailed revision comments:
      
      r5419 | marko | 2009-06-25 16:11:57 +0300 (Thu, 25 Jun 2009) | 18 lines
      branches/5.1: Merge r5418 from branches/zip:
      
        ------------------------------------------------------------------------
        r5418 | marko | 2009-06-25 15:55:52 +0300 (Thu, 25 Jun 2009) | 5 lines
        Changed paths:
           M /branches/zip/ChangeLog
           M /branches/zip/handler/ha_innodb.cc
           M /branches/zip/mysql-test/innodb_bug42101-nonzero.result
           M /branches/zip/mysql-test/innodb_bug42101-nonzero.test
           M /branches/zip/mysql-test/innodb_bug42101.result
           M /branches/zip/mysql-test/innodb_bug42101.test
        
        branches/zip: Fix a race condition caused by
        SET GLOBAL innodb_commit_concurrency=DEFAULT. (Bug #45749)
        When innodb_commit_concurrency is initially set nonzero,
        DEFAULT would change it back to 0, triggering Bug #42101.
        rb://139 approved by Heikki Tuuri.
        ------------------------------------------------------------------------
      502cfaa5
    • Satya B's avatar
      Applying InnoDB snashot 5.1-ss5488, part 1 · 66897d32
      Satya B authored
      1. Fixes build warnings caused by applying snapshot 5.1-ss5282
      
      2. Fix the Makefile.am in storage/innobase to remove the header file
         'fsp0types.h' which was added twice to fix build warning generated 
         after applying the 5.1-ss5282 snapshot
      
      Detailed revision comments:
      
      r5410 | marko | 2009-06-24 22:26:34 +0300 (Wed, 24 Jun 2009) | 2 lines
      branches/5.1: Add missing #include "mtr0log.h" to avoid warnings
      when compiling with -DUNIV_MUST_NOT_INLINE.
      66897d32
  6. 08 Jul, 2009 4 commits
    • Staale Smedseng's avatar
      Bug #43397 mysql headers redefine pthread_mutex_init · aaceb73b
      Staale Smedseng authored
      unnecessarily
            
      The problem is that libmysqlclient.so is built with THREAD
      undefined, while a client compiling against the same header
      files will see THREAD as defined and definitions in
      my_pthread.h will be included, possibly resulting in undefined
      symbols that cannot be resolved with libmysqlclient.so.
            
      The suggested solution is to require that clients wanting to
      link with libmysqlclient.so should be built with
      MYSQL_CLIENT_NO_THREADS defined. This requires a documentation
      change, and more details for this will be supplied if this
      patch is approved.
            
      The MYSQL_CLIENT_NO_THREADS define was renamed from
      UNDEF_THREADS_HACK, to get a more suitable (less suspicious)
      name for the define. (The UNDEF_THREADS_HACK is retained for
      backwards compatibility, though.)
            
      This patch is also in anticipation of WL#4958, which will
      remove this problem altogether by dropping the building of
      libmysqlclient.
      aaceb73b
    • Georgi Kodinov's avatar
      automerge · 131f6fa2
      Georgi Kodinov authored
      131f6fa2
    • Georgi Kodinov's avatar
      Addendum to the fix for bug 45807 : initialize a member needed in · 9249e5ff
      Georgi Kodinov authored
      Item_field::fix_fields()
      9249e5ff
    • Georgi Kodinov's avatar
  7. 07 Jul, 2009 1 commit