1. 18 Aug, 2005 1 commit
    • unknown's avatar
      Fix for Bug#11247 Stored procedures: Function calls in long loops leak memory · 026c1f55
      unknown authored
          and Bug#12297 SP crashes the server if data inserted inside a lon loop
      Third commit attempt. With fixes to the issues, showed up after full rebuild and
      tests on other hosts.
      
      
      mysql-test/r/rpl_sp.result:
        New warnings appeared in result file, as now we always create spcont in a stored routine.
        This is correct behaviour. We swallowed some warnings, as we used thd->spcont to check whether
        we are in the SP though we didn't set spcont in certain cases. This is fixed now.
      mysql-test/r/sp.result:
        fixed result file to reflect new tests
      mysql-test/t/sp.test:
        Added tests for bugs. Though one of them is disabled, as it fails because of the other bug.
        It should be enabled, when bug 12297 is fixed.
      sql/sp_head.cc:
        Per-instruction arena is implemented
      sql/sp_rcontext.cc:
         Now we should deal with callers_arena->free_list when we employ reuse mechanism with callers_arena
         switched during sp_eval_func_item
      sql/sp_rcontext.h:
        Add new member to sp_rcontext class, in order to handle instructions with assignment
        and/or with nested SP processing properly.
      026c1f55
  2. 17 Aug, 2005 8 commits
    • unknown's avatar
      univ.i: · 99bea6a7
      unknown authored
        Do not use __builtin_expect etc. with the Intel ICC compiler, as the compiler crashed in btr0cur.c; the patch was submitted by Axel Schwenke (Bug #11510)
      
      
      innobase/include/univ.i:
        Do not use __builtin_expect etc. with the Intel ICC compiler, as the compiler crashed in btr0cur.c; the patch was submitted by Axel Schwenke (Bug #11510)
      99bea6a7
    • unknown's avatar
      WL#2486 - natural and using join according to SQL:2003 · d24ce05d
      unknown authored
      - fixed a problem with RIGHT JOIN ON and enabled corresponding tests in select.test
      - fixed a memory leak
      
      
      mysql-test/r/select.result:
        Fixed a problem with RIGHT JOIN ON queries, enabling the corresponding tests.
      mysql-test/t/select.test:
        Fixed a problem with RIGHT JOIN ON queries, enabling the corresponding tests.
      sql/sql_base.cc:
        Fixed a problem with RIGHT JOINs that have operand(s) which are NATURAL JOIN(s).
      sql/table.h:
        Inherit from Sql_alloc for proper memory allocation.
        The change fixes a memory leak.
      d24ce05d
    • unknown's avatar
      Fixed code formatting. · 0a962dd5
      unknown authored
      0a962dd5
    • unknown's avatar
      Merge mysql.com:/home/timka/mysql/src/5.0-virgin · de69b987
      unknown authored
      into  mysql.com:/home/timka/mysql/src/5.0-2486
      
      
      sql/sql_base.cc:
        Auto merged
      de69b987
    • unknown's avatar
      WL#2486 - Process NATURAL and USING joins according to SQL:2003 · 694fea17
      unknown authored
      - Applied Monty's patch after his review of sql_base.cc
      
      
      sql/sql_base.cc:
        Applied Monty's patch after his review of WL#2486.
      694fea17
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 · 2afe8f7e
      unknown authored
      into  zim.(none):/home/brian/mysql/mysql-5.0
      
      2afe8f7e
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · cfee83c2
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      cfee83c2
    • unknown's avatar
      mysql-test-run.pl: · c1084942
      unknown authored
        Bug#11884: Corrected --start-and-exit, start the server
        as if the default/specified test case would have been run
      
      
      mysql-test/mysql-test-run.pl:
        Bug#11884: Corrected --start-and-exit, start the server
        as if the default/specified test case would have been run
      c1084942
  3. 16 Aug, 2005 14 commits
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · ac21bbe6
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      mysql-test/lib/mtr_cases.pl:
        Auto merged
      ac21bbe6
    • unknown's avatar
      mtr_process.pl: · 4c2c6e9d
      unknown authored
        Bug#11792: Check all of status code, to catch a crash as a failure
      mtr_cases.pl:
        Code cleanup for skipped/disabled handling
      mtr_process.pl:
        In debug mode, report if mysqladmin did not at least
        make the server stop listening to the port.
        Increased the time waiting for terminating to 20 seconds,
        to wait for really slow slave shutdown.
        Added call to start_reap_all(), to avoid zombies.
      mtr_report.pl:
        Removed prototype for unused function mtr_report_test_disabled()
      
      
      mysql-test/lib/mtr_report.pl:
        Removed prototype for unused function mtr_report_test_disabled()
      mysql-test/lib/mtr_cases.pl:
        Code cleanup for skipped/disabled handling
      mysql-test/lib/mtr_process.pl:
        Bug#11792: Check all of status code, to catch a crash as a failure
      4c2c6e9d
    • unknown's avatar
      Merge lmy004.:/work/mysql-5.0-clean · ab0931d2
      unknown authored
      into lmy004.:/work/mysql-5.0-bug12595
      
      ab0931d2
    • unknown's avatar
      after review fix for bug #12595 · 26f7e36e
      unknown authored
      
      sql/item_cmpfunc.cc:
        remove a line with trailing spaces
      26f7e36e
    • unknown's avatar
      Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1 · e9fbf37d
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-5.0
      
      
      ndb/tools/Makefile.am:
        Auto merged
      ndb/tools/ndb_config.cpp:
        Auto merged
      e9fbf37d
    • unknown's avatar
      mtr_process.pl: · be030cb2
      unknown authored
        Bug#12094: Let sleep_until_file_created() return the pid as intended
      
      
      mysql-test/lib/mtr_process.pl:
        Bug#12094: Let sleep_until_file_created() return the pid as intended
      be030cb2
    • unknown's avatar
      Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-4.1 · a86df355
      unknown authored
      into mysql.com:/Users/kent/mysql/bk/mysql-4.1
      
      a86df355
    • unknown's avatar
      fix for bug #12595 (Escape character has to be exactly one) · 7c524e0d
      unknown authored
      
      mysql-test/r/select.result:
        results for test of bug 12595
      mysql-test/t/select.test:
        test for bug #12595
      sql/item_cmpfunc.cc:
        check whether the size of the escape string is exactly 1 (bug #12595)
      7c524e0d
    • unknown's avatar
      31a03634
    • unknown's avatar
      Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.0 · f41bf600
      unknown authored
      into lmy004.wdf.sap.corp:/work/mysql-5.0-clean
      
      f41bf600
    • unknown's avatar
      fix for bug #12183 "SHOW OPEN TABLES behavior doesn't match grammar" · 881e2a50
      unknown authored
      (after review commit)
      
      
      mysql-test/r/show_check.result:
        test the extended functionality (so far not documented) of SHOW OPEN FILES
      mysql-test/t/show_check.test:
        test the extended functionality (so far not documented) of SHOW OPEN FILES
      sql/mysql_priv.h:
        pass the name of the database for checking
      sql/sql_base.cc:
        first check against the db if present (SHOW OPEN FILES FROM xxx)
        then do wild compare but only against the table name
      sql/sql_show.cc:
        pass the DB if specified
      881e2a50
    • unknown's avatar
      Manual merge · ec98f5a5
      unknown authored
      ec98f5a5
    • unknown's avatar
      subselect.result: · 2a1af62e
      unknown authored
        Added missing drop statement
      subselect.test:
        Added missing drop statement.
      
      
      mysql-test/t/subselect.test:
        Added missing dro statement.
      mysql-test/r/subselect.result:
        Added missing drop statement
      2a1af62e
    • unknown's avatar
      sql_select.cc: · 37a8584f
      unknown authored
        Fixed bug #11479.
        The JOIN::reinit method cannot call setup_tables
        after the optimization phase since this function
        removes some optimization settings for joined
        tables. E.g. it resets values of the null_row flag to 0.
      subselect.result, subselect.test:
        Added a test case for bug #11479.
      
      
      mysql-test/t/subselect.test:
        Added a test case for bug #11479.
      mysql-test/r/subselect.result:
        Added a test case for bug #11479.
      sql/sql_select.cc:
        Fixed bug #11479.
        The JOIN::reinit method cannot call setup_tables
        after the optimization phase since this function
        removes some optimization settings for joined
        tables. E.g. it resets values of the null_row flag to 0.
      37a8584f
  4. 15 Aug, 2005 17 commits
    • unknown's avatar
      Clean up merge from 4.1 · ac8d4a4d
      unknown authored
      
      mysql-test/r/func_date_add.result:
        Update results
      mysql-test/r/func_time.result:
        Update results
      server-tools/instance-manager/protocol.cc:
        Fix call to list_rest()
      sql/sp_head.cc:
        sp_change_db() removed, call mysql_change_db() instead.
      ac8d4a4d
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-12318 · 1639a9a4
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      1639a9a4
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-5.0-10627 · 8024ef77
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      sql/share/errmsg.txt:
        SCCS merged
      8024ef77
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-clean · 96153160
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-5.0-clean
      
      
      myisam/myisampack.c:
        Auto merged
      mysql-test/r/metadata.result:
        Auto merged
      mysys/list.c:
        Auto merged
      mysys/thr_lock.c:
        Auto merged
      sql-common/client.c:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_test.cc:
        Auto merged
      sql/mysqld.cc:
        SCCS merged
      96153160
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-11688 · af93f443
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      af93f443
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · f5c4ce0e
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      sql/sql_show.cc:
        Auto merged
      f5c4ce0e
    • unknown's avatar
      Don't clear warnings for functions or triggers · 82c315fb
      unknown authored
      Fixed failing test
      
      
      mysql-test/t/rpl_trigger.test:
        Added missing option that caused the test to fail sometimes
      sql/sql_parse.cc:
        Don't clear warnings for functions or triggers
      82c315fb
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-12235 · 94052bf1
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      94052bf1
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-11796 · d4695de3
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      
      sql/mysqld.cc:
        Auto merged
      d4695de3
    • unknown's avatar
      Merge mysql.com:/home/jimw/my/mysql-4.1-12327 · b0872f4e
      unknown authored
      into  mysql.com:/home/jimw/my/mysql-4.1-clean
      
      b0872f4e
    • unknown's avatar
      Bug#12518 · 4813facf
      unknown authored
        "COLUMN_DEFAULT has wrong value if NOT NULL is set"
        Show NULL instead of empty string when no default value is set
      
      
      mysql-test/r/information_schema.result:
        test for bug 12518
      mysql-test/t/information_schema.test:
        test for bug 12518
      sql/sql_show.cc:
        report NULL for information schema result when there is no default value
      4813facf
    • unknown's avatar
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · d7b68578
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      sql/ha_berkeley.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_delete.cc:
        Auto merged
      sql/sql_derived.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/sql_class.cc:
        Manual merge
      d7b68578
    • unknown's avatar
      Fixed typo in error numbers · b49978e3
      unknown authored
      b49978e3
    • unknown's avatar
      Save and clear run context before executing a stored function or trigger and restore it afterwards. · 262075d1
      unknown authored
      This allows us to use statement replication with functions and triggers
      The following things are fixed with this patch:
      - NOW() and automatic timestamps takes the value from the main event for functions and triggers (which allows these to replicate with statement level logging)
      - No side effects for triggers or functions with auto-increment values(), last_insert_id(), rand() or found_rows()
      - Triggers can't return result sets
      
      Fixes bugs:
      #12480: NOW() is not constant in a trigger
      #12481: Using NOW() in a stored function breaks statement based replication
      #12482: Triggers has side effects with auto_increment values
      #11587: trigger causes lost connection error
      
      
      mysql-test/r/trigger.result:
        Added test fpr big
      mysql-test/t/sp-error.test:
        Changed error message numbers
      mysql-test/t/trigger.test:
        Added test for trigger returning result (#11587)
      sql/item_func.cc:
        Store the first used seed value for RAND() value.
        (This makes rand() replicatable in functions and triggers)
        Save and clear run context before executing a stored function and restore it afterwards.
        This removes side effects of stored functions for RAND(), auto-increment values and NOW() and makes most stored function replicatable
      sql/share/errmsg.txt:
        Reuse error message also for triggers
      sql/sp_head.cc:
        If in function or trigger, don't change value of NOW()
        (This allows us to use statement replication with functions that directly or indirectly uses timestamps)
      sql/sql_class.cc:
        Added framework for storing and retrieving run context while exceuting triggers or stored functions.
      sql/sql_class.h:
        Added framework for storing and retrieving run context while exceuting triggers or stored functions.
      sql/sql_parse.cc:
        If in function or trigger, don't change value of NOW()
        (This allows us to use statement replication with functions that directly or indirectly uses timestamps)
      sql/sql_trigger.cc:
        Moved process_triggers function from sql_trigger.h
        Use reset/restore sub_statement_state while executing triggers to avoid side effects and make them replicatable
      sql/sql_trigger.h:
        Moved process_triggers function from sql_trigger.h
        Use reset/restore sub_statement_state while executing triggers to avoid side effects and make them replicatable
      sql/sql_yacc.yy:
        Give error message if trigger can return a result set (Bug #11587)
      tests/fork_big2.pl:
        Removed return from end of lines
      mysql-test/r/rpl_trigger.result:
        New BitKeeper file ``mysql-test/r/rpl_trigger.result''
      mysql-test/t/rpl_trigger.test:
        New BitKeeper file ``mysql-test/t/rpl_trigger.test''
      262075d1
    • unknown's avatar
      - Removed a non-fatal error when running the Mac OS X 10.4 PackageMaker: · fabe2c04
      unknown authored
        CFBundleShortVersionString in Info.plist may not include a version
        suffix like "-beta" (BUG#12584)
      - Minor cleanup: removed two unused keys from Info.plist: IFMajorVersion
        and IFMinorVersion
      
      
      support-files/MacOSX/Info.plist.sh:
        - Set CFBundleShortVersionString to MYSQL_NO_DASH_VERSION, not VERSION
          (BUG#12584)
        - removed two obsolete keys: IFMajorVersion and IFMinorVersion - they
          are not actually used according to the "Software Distribution"
          documentation at http://developer.apple.com/
      support-files/MacOSX/Makefile.am:
        - added an sed call to replace @MYSQL_NO_DASH_VERSION@ (e.g. for
          Info.plist (BUG#12584)
      fabe2c04
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0 · ab852dee
      unknown authored
      into sergbook.mysql.com:/usr/home/serg/Abk/mysql-5.0
      
      ab852dee