1. 21 Jun, 2005 10 commits
    • unknown's avatar
      A preparatory patch to help adding JOIN::transform() and move one-time · 17c3f159
      unknown authored
      query transformations to the PREPARE stage (prepared statements).
      
      
      sql/item.h:
        Remove an unused friend declaration.
      sql/mysql_priv.h:
        Change signature of insert_fields()
      sql/sp_head.cc:
        Make is_stmt_prepare_or_first_sp_execute really work: reset SP state
        to EXECUTED after execution.
      sql/sql_base.cc:
        allocate_view_names flag of insert_fields is removed.
        The purpose of this variable was to amend the case when a view
        is replaced with a base table between subsequent executions of a prepared
        statement: in that case the new table theoretically can be used instead
        of the view. If allocate_view_names was set,
        all the references to the view expressions were replaced with Item_field's
        which in turn could have been resolved by their names.
        But this approach doesn't work for other reasons, so let's not try
        to help what must be solved by TDC.
      sql/sql_class.h:
        Add is_first_sp_execute() helper method.
      sql/sql_handler.cc:
        insert_fields signature changed.
      sql/sql_lex.h:
        Add a comment for variable 'first_execution'.
      17c3f159
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0 · 4aecd91f
      unknown authored
      into  moonbone.local:/work/mysql-5.0-bug-7422
      
      
      mysql-test/r/view.result:
        SCCS merged
      mysql-test/t/view.test:
        SCCS merged
      4aecd91f
    • unknown's avatar
      Fix bug #7422 "order by" doesn't work · ce28e749
      unknown authored
      Field with wrong buffer was used to make sort key, which results in producing
      same sort key for all records.
      
      
      
      sql/filesort.cc:
        Fix bug#7422 "order by" doesn't work
      mysql-test/t/view.test:
        Test case for bug#7422 "order by" doesn't work
      mysql-test/r/view.result:
        Test case for bug#7422 "order by" doesn't work
      ce28e749
    • unknown's avatar
      log0log.c: · 738f3333
      unknown authored
        log_checkpoint_margin(): Correct a typo that was introduced
        when fixing gcc 4.0 warnings.
      
      
      innobase/log/log0log.c:
        log_checkpoint_margin(): Correct a typo that was introduced
        when fixing gcc 4.0 warnings.
      738f3333
    • unknown's avatar
      InnoDB: Remove some warnings reported by GCC 4.0.0. · 6ce663b5
      unknown authored
      
      innobase/log/log0recv.c:
        Remove GCC 4.0.0 warnings about possibly uninitialized variables.
      innobase/row/row0umod.c:
        row_undo_mod_undo_also_prev_vers(): Remove unused parameter thr,
        always initialize *undo_no to remove GCC 4.0.0 warning
      innobase/trx/trx0undo.c:
        trx_undo_write_xid(): Remove warning about signedness mismatch,
        add const qualifier to parameter xid.
      sql/ha_innodb.cc:
        Add proper casts from ulonglong to ulong in fprintf statements.
      6ce663b5
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0 · 427be27e
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
      
      427be27e
    • unknown's avatar
      InnoDB: adjust test result · 0310fdf7
      unknown authored
      
      mysql-test/r/innodb.result:
        Current default is innodb_thread_concurrency=20
      0310fdf7
    • unknown's avatar
      Merge hundin.mysql.fi:/home/marko/mysql-5.0 · 9e8e3283
      unknown authored
      into hundin.mysql.fi:/home/marko/mysql-5.0-current
      
      
      innobase/dict/dict0dict.c:
        Auto merged
      innobase/fil/fil0fil.c:
        Auto merged
      innobase/include/lock0lock.h:
        Auto merged
      innobase/lock/lock0lock.c:
        Auto merged
      innobase/os/os0file.c:
        Auto merged
      innobase/row/row0ins.c:
        Auto merged
      innobase/row/row0mysql.c:
        Auto merged
      innobase/srv/srv0start.c:
        Auto merged
      innobase/trx/trx0trx.c:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/ha_innodb.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      9e8e3283
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · 87195381
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      87195381
    • unknown's avatar
      mysql-test-run.pl: · 474362ba
      unknown authored
        More compact and safe handling of path names.
        Support for running in Windows source tree.
        Use libtool wrapper, instead of messing with
        library path names, and objects in .libs dir.
      mtr_misc.pl:
        Utility function that search aand check path names
      mtr_report.pl:
        Patch by Carsten, set correct reject/result/eval if not main suite
      
      
      mysql-test/lib/mtr_report.pl:
        Patch by Carsten, set correct reject/result/eval if not main suite
      mysql-test/lib/mtr_misc.pl:
        Utility function that search aand check path names
      mysql-test/mysql-test-run.pl:
        More compact and safe handling of path names.
        Support for running in Windows source tree.
        Use libtool wrapper, instead of messing with
        library path names, and objects in .libs dir.
      474362ba
  2. 20 Jun, 2005 30 commits
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-clean · 25a11563
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      VC++Files/client/mysqlclient.dsp:
        Auto merged
      VC++Files/libmysql/libmysql.dsp:
        Auto merged
      client/mysql.cc:
        Auto merged
      myisam/ft_boolean_search.c:
        Auto merged
      mysql-test/r/fulltext.result:
        Auto merged
      mysql-test/t/fulltext.test:
        Auto merged
      vio/viosocket.c:
        Auto merged
      25a11563
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · fcad7729
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      fcad7729
    • unknown's avatar
      Merge · 39de961b
      unknown authored
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      mysql-test/r/group_by.result:
        Auto merged
      sql/Makefile.am:
        Auto merged
      sql/field.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      39de961b
    • unknown's avatar
      mtr_cases.pl: · 2611f981
      unknown authored
        Bug#11466: Script can now get test case name
        from test case file path on command line
      mysql-test-run.pl:
        Bug#11466: Added --skip-ndbcluster/--skip-ndb option
      mtr_cases.pl:
        Don't set --default-time-zone if opt file sets it
        Restart the server if time zone is given in opt file
      mysql-test-run.pl:
        Don't remove symlink to "var" directory in cleanup
        Removed duplicate/unessesary options to mysqld
      
      
      mysql-test/mysql-test-run.pl:
        Bug#11466: Added --skip-ndbcluster/--skip-ndb option
      mysql-test/lib/mtr_cases.pl:
        Bug#11466: Script can now get test case name
        from test case file path on command line
      2611f981
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · 5ffdafd3
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1
      
      5ffdafd3
    • unknown's avatar
      Merge jwinstead@production.mysql.com:my/mysql-4.1-win · 0a8e927b
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      0a8e927b
    • unknown's avatar
      Merge jwinstead@production.mysql.com:my/mysql-4.1-10840 · 1b9cc932
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      1b9cc932
    • unknown's avatar
      Merge jwinstead@production.mysql.com:my/mysql-4.1-7858 · e0b67019
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      e0b67019
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · b3914791
      unknown authored
      into rurik.mysql.com:/home/igor/mysql-4.1
      
      b3914791
    • unknown's avatar
      group_by.result: · 157c3738
      unknown authored
        Added  a test case for bug #11385.
      group_by.test:
        Added  a test case for bug #11385.
      field.h:
        Fixed bug #11385.
        The bug was due to not defined method decimals for the class
        Field_datetime.
      
      
      sql/field.h:
        Fixed bug #11385.
        The bug was due to not defined method decimals for the class
        Field_datetime.
      mysql-test/t/group_by.test:
        Added  atest case for bug #11385.
      mysql-test/r/group_by.result:
        Added  a test case for bug #11385.
      157c3738
    • unknown's avatar
      Fix handling of command-line on Windows, missed as part of earlier · df357c68
      unknown authored
      commit. (Bug #10840)
      
      
      client/mysql.cc:
        Add cast of unsigned value stored in signed char
      df357c68
    • unknown's avatar
      Makefile.am: · 97afdc4d
      unknown authored
        Corrected dependency for "lex_hash.h", to avoid occasional make failure
      
      
      sql/Makefile.am:
        Corrected dependency for "lex_hash.h", to avoid occasional make failure
      97afdc4d
    • unknown's avatar
      Merge · 5263cd10
      unknown authored
      5263cd10
    • unknown's avatar
      ha_ndbcluster.cc: · 77bc59aa
      unknown authored
        Added CR for readability
      
      
      sql/ha_ndbcluster.cc:
        Added CR for readability
      77bc59aa
    • unknown's avatar
      Added comment to store_lock · 77cc0030
      unknown authored
      77cc0030
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1 · 469716e9
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
      
      469716e9
    • unknown's avatar
      Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1 · 08876d7b
      unknown authored
      into igor-inspiron.creware.com:/home/igor/mysql-4.1
      
      
      sql/sql_select.cc:
        Auto merged
      08876d7b
    • unknown's avatar
      Manual merge of patch for bug#11060 "Server crashes on calling stored · c0c6f98b
      unknown authored
      procedure with INSERT SELECT UNION SELECT" aka "Server crashes on
      re-execution of prepared INSERT ... SELECT with UNION" into 5.0 tree.
      
      
      mysql-test/r/ps.result:
        Manual merge.
      mysql-test/t/ps.test:
        Manual merge.
      sql/sql_insert.cc:
        Manual merge.
      c0c6f98b
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 7ffce43d
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-bg11060
      
      7ffce43d
    • unknown's avatar
      Fix for bug #11060 "Server crashes on re-execution of prepared · c8843d32
      unknown authored
      INSERT ... SELECT with UNION" (reviewed version).
      
      Altough bug manifest itself only starting from 5.0 it is better to
      apply fix to 4.1 to keep some assumptions true and make code more
      future-proof.
      
      
      mysql-test/r/ps.result:
        Added test case for bug #11060 "Server crashes on re-execution of
        prepared INSERT ... SELECT with UNION".
      mysql-test/t/ps.test:
        Added test case for bug #11060 "Server crashes on re-execution of
        prepared INSERT ... SELECT with UNION".
      sql/sql_insert.cc:
        select_insert::prepare():
          Item::fix_fields() methods operate assuming that LEX::current_select
          points to the select to which current item belongs. Thus
          during check_insert_fields() routine execution LEX::current_select
          should point ot the first select in query since this is the
          select with which items in insert list is associated.
          But if we have INSERT SELECT UNION SELECT type of query
          LEX::current_select will point to the fake_select_lex instead
          since select_insert::prepare() is called during processing of JOIN
          which corresponds to this select_lex.
          So we have set LEX::current_select before calling check_insert_fields()
          and restore it afterwards.
      c8843d32
    • unknown's avatar
      Fix a formatting bug and add a test for it. · b51dc107
      unknown authored
      
      sql/share/errmsg.txt:
        Fix a formatting bug.
      sql/sql_prepare.cc:
        Fix a formatting bug.
      tests/mysql_client_test.c:
        Test the server side error message.
      b51dc107
    • unknown's avatar
      Merge · 7f99b235
      unknown authored
      7f99b235
    • unknown's avatar
      Makefile.am: · 992173f4
      unknown authored
        Use the Perl version of mysql-test-run
      
      
      Makefile.am:
        Use the Perl version of mysql-test-run
      992173f4
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · 141fb9a5
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      141fb9a5
    • unknown's avatar
      mysql-test-run.pl: · cb866d66
      unknown authored
        Corrected path to 'mysql_fix_privilege_tables'
      
      
      mysql-test/mysql-test-run.pl:
        Corrected path to 'mysql_fix_privilege_tables'
      cb866d66
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1 · ad60132a
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
      
      ad60132a
    • unknown's avatar
      mysql-test-run.pl: · d0a22c17
      unknown authored
        Added --log-bin-trust-routine-creators to server start
        Increase and autoextend innodb tables
      
      
      mysql-test/mysql-test-run.pl:
        Added --log-bin-trust-routine-creators to server start
        Increase and autoextend innodb tables
      d0a22c17
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · e6317287
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      e6317287
    • unknown's avatar
      mysql-test-run.pl: · bbb0067b
      unknown authored
        Corrected path to 'mysql_fix_privilege_tables'
        Corrected dummy --manager-port to take integer argument
      
      
      mysql-test/mysql-test-run.pl:
        Corrected path to 'mysql_fix_privilege_tables'
      bbb0067b
    • unknown's avatar
      InnoDB: Remove warnings detected by GCC 4.0.0 · 374850dc
      unknown authored
      
      innobase/fsp/fsp0fsp.c:
        Declare "first" in the scope where it is used, and add dummy return
        statement after ut_error to silence compiler warning.
      innobase/include/dyn0dyn.h:
        Add const qualifier to dyn_push_string().
      innobase/include/dyn0dyn.ic:
        dyn_push_string(): Add const qualifier to str;
        remove intermediate assignment.
      innobase/include/mtr0log.h:
        mlog_write_string(), mlog_catenate_string(): Add const to str
      innobase/log/log0log.c:
        Eliminate variables new_oldest and do_preflush in order to avoid
        warnings about possibly uninitialized variables.
        (new_oldest will now be declared in the scope of usage,
        and do_preflush == (advance != 0).)
      innobase/log/log0recv.c:
        Remove warnings about uninitialized variables.
        Add UNIV_UNLIKELY() hints.
      innobase/mtr/mtr0log.c:
        mlog_write_string(), mlog_catenate_string(): Add const to str
        mlog_write_string(): Add UNIV_UNLIKELY hints to assertion-like tests
      innobase/row/row0sel.c:
        Remove warning about possibly uninitialized variable.
        (Always initialize *out_rec.)
      374850dc