1. 16 Mar, 2005 1 commit
    • unknown's avatar
      Bug#8670 · 8e7c17a8
      unknown authored
        Rework to resolve ambigious grammer: conflict in join expression
        handling of parentheses for nested joins and derived tables.
        Tests included of failing statements
      Optimize item construction for AND/OR logical expressions
      
      
      mysql-test/r/select.result:
        Bug#8670
          Tests for failing expressions
      mysql-test/t/select.test:
        Bug#8670
          Tests for failing expressions
      sql/sql_parse.cc:
        Bug#8670
          method st_select_lex::end_nested_join() returns NULL when
          there are no elements in the join.
      sql/sql_yacc.yy:
        Optimize construction for Item_cond_or and Item_cond_and
          Reduces object count in case of complex expressions.
        Bug#8670
          Solve ambigious grammar.
          Fix handling of parentheses in join expressions to
          correct handling of nested joins and derived tables.
      8e7c17a8
  2. 13 Mar, 2005 4 commits
    • unknown's avatar
      set_var.cc, mysqld.cc, ha_innodb.cc, sql_class.h: · a569b083
      unknown authored
        Add a settable session variable innodb_support_xa; setting it to 0 can save up to 10 % of CPU time and 150 bytes of space in each undo log
      trx0trx.h, trx0undo.c, trx0trx.c, trx0roll.c:
        Enable XA if innodb_support_xa is not set to 0; make prepare to do log fsync's according to innodb_flush_log_at_trx_commit
      
      
      innobase/trx/trx0roll.c:
        Enable XA if innodb_support_xa is not set to 0; make prepare to do log fsync's according to innodb_flush_log_at_trx_commit
      innobase/trx/trx0trx.c:
        Enable XA if innodb_support_xa is not set to 0; make prepare to do log fsync's according to innodb_flush_log_at_trx_commit
      innobase/trx/trx0undo.c:
        Enable XA if innodb_support_xa is not set to 0; make prepare to do log fsync's according to innodb_flush_log_at_trx_commit
      innobase/include/trx0trx.h:
        Enable XA if innodb_support_xa is not set to 0; make prepare to do log fsync's according to innodb_flush_log_at_trx_commit
      sql/sql_class.h:
        Add a settable session variable innodb_support_xa; setting it to 0 can save up to 10 % of CPU time and 150 bytes of space in each undo log
      sql/ha_innodb.cc:
        Add a settable session variable innodb_support_xa; setting it to 0 can save up to 10 % of CPU time and 150 bytes of space in each undo log
      sql/mysqld.cc:
        Add a settable session variable innodb_support_xa; setting it to 0 can save up to 10 % of CPU time and 150 bytes of space in each undo log
      sql/set_var.cc:
        Add a settable session variable innodb_support_xa; setting it to 0 can save up to 10 % of CPU time and 150 bytes of space in each undo log
      a569b083
    • unknown's avatar
      join_outer.test: · dad8e1f5
      unknown authored
        Correction after manual merge.
      
      
      mysql-test/t/join_outer.test:
        Correction after manual merge.
      dad8e1f5
    • unknown's avatar
      Manual merge · 7bf4a418
      unknown authored
      
      sql/item_cmpfunc.h:
        Auto merged
      7bf4a418
    • unknown's avatar
      join_outer.result, join_outer.test: · 7cecea52
      unknown authored
        Added a test case for bug #9017.
      item_cmpfunc.h:
        A wrong not_null_tables method for Item_cond_xor
        caused a conversion of a left join into an inner join
        that was not valid.
      
      
      sql/item_cmpfunc.h:
        A wrong not_null_tables method for Item_cond_xor
        caused a conversion of a left join into an inner join
        that was not valid.
      mysql-test/t/join_outer.test:
        Added a test case for bug #9017.
      mysql-test/r/join_outer.result:
        Added a test case for bug #9017.
      7cecea52
  3. 11 Mar, 2005 15 commits
  4. 10 Mar, 2005 20 commits
    • unknown's avatar
      Merge mysql.com:/home/psergey/mysql-4.1-bug8711 · 324a5668
      unknown authored
      into mysql.com:/home/psergey/mysql-5.0-bug8711
      
      
      mysql-test/r/join_outer.result:
        Auto merged
      mysql-test/t/join_outer.test:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      324a5668
    • unknown's avatar
      Merge · ff2fcba3
      unknown authored
      
      sql/item_cmpfunc.h:
        Auto merged
      mysql-test/r/join_outer.result:
        SCCS merged
      mysql-test/t/join_outer.test:
        SCCS merged
      ff2fcba3
    • unknown's avatar
      Fix for BUG#8711: "<=>" may have true value for NULL arguments, so make · 7c90fa7b
      unknown authored
      Item_func_equal::not_null_tables() always return 0.
      
      
      mysql-test/r/join_outer.result:
        Testcase for BUG#8711
      mysql-test/t/join_outer.test:
        Testcase for BUG#8711
      sql/item_cmpfunc.h:
        Fix for BUG#8711: "<=>" may have true value for NULL arguments, i.e. it can accept NULL-complemented 
        table rows. This differs from assumptions made in Item_func::not_null_tables(), so add 
        Item_func_equal::not_null_tables().
        Item_func_equal::not_null_tables_cache value doesn't make sense now, but we still let it be
        calculated (and ignore it)
      7c90fa7b
    • unknown's avatar
      Correct "make_win_src_distribution" to not introduce additional directory layers, · 33f9d926
      unknown authored
      adapt the Windows build files accordingly.
      
      
      VC++Files/tests/mysql_client_test.dsp:
        As the directory structure on Windows now resembles that on Unix (no more
        "tests/tests", by the correction in "make_win_src_distribution.sh"), the location
        of "mysql_client_test.*" has changed. Adapt the build tools accordingly.
      VC++Files/tests/mysql_client_test_ia64.dsp:
        As the directory structure on Windows now resembles that on Unix (no more
        "tests/tests", by the correction in "make_win_src_distribution.sh"), the location
        of "mysql_client_test.*" has changed. Adapt the build tools accordingly.
      scripts/make_win_src_distribution.sh:
        1) The semantics of "cp -R src targ" depend on the (non)existence of "targ".
        By simply doing "$CP -R $i $BASE/$i", the directory hierarchy below $BASE differed
        from the source for each "$i" that already existed as a target directory.
        This is now prevented by checking the existence and adapting the command.
        
        2) Comment where "$BASE" (the target directory) comes into existence.
        
        3) Introduce an "abort" function as a start point for more sanity checks, use it.
      33f9d926
    • unknown's avatar
      More portability fixes · 5aed4129
      unknown authored
      5aed4129
    • unknown's avatar
      Merge mysql.com:/M41/mysql-4.1 into mysql.com:/M41/push-4.1 · 20ab3dc9
      unknown authored
      
      Build-tools/Do-compile:
        Auto merged
      mysql-test/mysql-test-run.sh:
        Auto merged
      20ab3dc9
    • unknown's avatar
      Merge marko@bk-internal.mysql.com:/home/bk/mysql-5.0 · 48e33114
      unknown authored
      into hundin.mysql.fi:/home/marko/mysql-5.0
      
      
      48e33114
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/5.0-virgin · 03ecb6bd
      unknown authored
      into mysql.com:/home/timka/mysql/src/5.0-dbg
      
      
      03ecb6bd
    • unknown's avatar
      InnoDB: Keep the "compact format" flag in SYS_TABLES.N_COLS · db32cb17
      unknown authored
      instead of SYS_TABLES.MIX_LEN, because the latter was not
      initialized to zero in old MySQL 3.23 releases. This will break
      existing MySQL/InnoDB 5.0.3-bk databases for which
      SHOW TABLE STATUS displays Row_format=Compact.
      
      
      innobase/dict/dict0crea.c:
        Write the "compact format" flag to N_COLS instead of MIX_LEN.
        Remove corruption analysis for MIX_LEN, as it has been tracked down
        to MySQL 3.23.4x not initializing MIX_LEN.
      innobase/dict/dict0load.c:
        Read the "compact format" flag from N_COLS instead of MIX_LEN.
      db32cb17
    • unknown's avatar
      Merge marko@bk-internal.mysql.com:/home/bk/mysql-5.0 · 380c64b1
      unknown authored
      into hundin.mysql.fi:/home/marko/mysql-5.0
      
      
      380c64b1
    • unknown's avatar
      rem0rec.h: · 5054fdd8
      unknown authored
        Restore sensible values to REC_OFFS_NORMAL_SIZE and REC_OFFS_SMALL_SIZE.
      
      
      innobase/include/rem0rec.h:
        Restore sensible values to REC_OFFS_NORMAL_SIZE and REC_OFFS_SMALL_SIZE.
      5054fdd8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 90eff10b
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0-sp
      
      
      90eff10b
    • unknown's avatar
      InnoDB: Introduce the symbols REC_OFFS_NORMAL_SIZE and · 066e8900
      unknown authored
      REC_OFFS_SMALL_SIZE for the initial allocation sizes of
      arrays passed to rec_get_offsets().
      
      
      innobase/btr/btr0btr.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/btr/btr0cur.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/btr/btr0sea.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/include/rem0rec.h:
        Define REC_OFFS_NORMAL_SIZE and REC_OFFS_SMALL_SIZE.
      innobase/lock/lock0lock.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/page/page0cur.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/page/page0page.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/rem/rem0rec.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0ins.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0mysql.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0purge.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0row.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0sel.c:
        s/100/REC_OFFS_NORMAL_SIZE/
        s/10/REC_OFFS_SMALL_SIZE/
      innobase/row/row0undo.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      innobase/row/row0upd.c:
        s/100/REC_OFFS_NORMAL_SIZE/
        s/10/REC_OFFS_SMALL_SIZE/
      innobase/trx/trx0rec.c:
        s/100/REC_OFFS_NORMAL_SIZE/
      066e8900
    • unknown's avatar
      a fix (bug #9029 Traditional: Wrong SQLSTATE returned for string truncation). · 1690bab9
      unknown authored
      
      sql/field.cc:
        a fix (bug #9029 Traditional: Wrong SQLSTATE returned for string truncation).
        Should issue ER_DATA_TOO_LONG in 'traditional' mode when data truncated.
      1690bab9
    • unknown's avatar
      Fix for sp.test failure in --ps-protocol mode (2nd attempt). · 8c6a02df
      unknown authored
      Now we should call open_and_lock_tables() even if table list is empty -
      to cache stored routines used by query and open and lock tables required
      for their execution.
      
      
      sql/sql_insert.cc:
        Now we should call open_and_lock_tables() even if table list is empty -
        to cache stored routines used by query and open and lock tables required
        for their execution.
      sql/sql_prepare.cc:
        Now we should call open_and_lock_tables() even if table list is empty -
        to cache stored routines used by query and open and lock tables required
        for their execution. Thus we have to move most of functionality from 
        select_like_statement_test() to separate function to be able to reuse it
        for multi-update processing (for which tables are open and locked in 
        mysql_multi_update_prepare() call).
      8c6a02df
    • unknown's avatar
      Merge · db93db85
      unknown authored
      
      mysql-test/r/select.result:
        Auto merged
      mysql-test/t/select.test:
        Auto merged
      sql/filesort.cc:
        Auto merged
      sql/item.cc:
        SCCS merged
      db93db85
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · cf732466
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
      
      
      cf732466
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/4.1-bug-7425 · dd843ee4
      unknown authored
      into mysql.com:/home/timka/mysql/src/4.1-dbg
      
      
      dd843ee4
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · fb9d4dca
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      fb9d4dca
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 6d87bfab
      unknown authored
      into mysql.com:/usr/home/ram/work/5.0
      
      
      6d87bfab