1. 14 Jul, 2005 21 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · dff519c7
      unknown authored
      into  mysql.com:/media/sda1/mysql/mysql-5.0-10760-new
      
      
      sql/item_func.cc:
        Auto merged
      dff519c7
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · bd818443
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      bd818443
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-root · 9fa9b4e3
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      libmysql/libmysql.c:
        Manual merge
      tests/mysql_client_test.c:
        Manual merge
      9fa9b4e3
    • unknown's avatar
      A fix and a test case for Bug#11183 "mysql_stmt_reset() doesn't reset · 46d38833
      unknown authored
      information about error".
      
      
      libmysql/libmysql.c:
        Clear the last error on the statement if mysql_stmt_reset succeeded.
      tests/mysql_client_test.c:
        A test case for Bug#11183 "mysql_stmt_reset() doesn't reset information 
        about error"
      46d38833
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-root · 8a79efdf
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_6bdb.result:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      sql/field.cc:
        manual merge
      tests/mysql_client_test.c:
        manual merge
      mysql-test/r/select.result:
        manual merge
      mysql-test/t/select.test:
        manual merge
      sql/sql_select.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      8a79efdf
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · bd275bc6
      unknown authored
      into  mysql.com:/opt/local/work/mysql-4.1-root
      
      bd275bc6
    • unknown's avatar
      Merge mysql.com:/home/psergey/mysql-4.1-build-tree · 97f79493
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-merge-from-build
      
      
      sql/item_func.cc:
        Auto merged
      97f79493
    • unknown's avatar
      Get rid of checking for ETIME return value of pthread_cond_timedwait. · 201746fb
      unknown authored
      ETIME was returned by cond_timedwait (sic, the pre-POSIX1001b function) on 
      Solaris 2.6 and 2.7. pthread_cond_timedwait on Solaris returns ETIMEDOUT.
      The standard requirement is that the only additional return value
      of pthred_cond_timedwait compared to pthread_cond_wait is ETIMEDOUT.
      Let us not bloat the application code with redundant checks,
      and if we're ever to work on a platform that returns a non-standard 
      value, we should write a wrapper for that platform (like we do, e.g., for
      Windows).
      
      
      mysys/my_os2cond.c:
        - fix our implementation of pthread_cond_timedwait on OS2 to return
          ETIMEDOUT instead of ETIME.
      sql/item_func.cc:
        - don't check for ETIME
      sql/slave.cc:
        - don't check for ETIME
      sql/sql_insert.cc:
        - don't check for ETIME
      201746fb
    • unknown's avatar
      Fix for BUG#11869: In Item_func_match::fix_index() handle the case when there is no · 5783e1a1
      unknown authored
        source table present (this happens for ORDER BY after UNION)
      
      
      mysql-test/r/fulltext_order_by.result:
        Testcase for BUG#11869
      mysql-test/t/fulltext_order_by.test:
        Testcase for BUG#11869
      5783e1a1
    • unknown's avatar
      Fix for BUG#11700: in add_not_null_conds(), call full fix_fields() for the created NOT NULL. · 76d9fa6f
      unknown authored
        This is needed because in some cases range optimization is performed twice and added 
        NOT NULL item must have correct const_table_map() value. 
      
      
      mysql-test/r/select.result:
        Testcase for BUG#11700
      mysql-test/t/select.test:
        Testcase for BUG#11700
      76d9fa6f
    • unknown's avatar
      Merge bk@192.168.21.1:/usr/home/bk/mysql-5.0 · d671d80b
      unknown authored
      into deer.(none):/home/hf/work/mysql-5.0.clean
      
      d671d80b
    • unknown's avatar
      Fix for bug #10929 (type_newdecimal.test requires InnoDB) · 7fd4da5f
      unknown authored
      
      mysql-test/r/innodb.result:
        test result fixed
      mysql-test/r/type_newdecimal.result:
        test result fixed
      mysql-test/t/innodb.test:
        test moved here
      mysql-test/t/type_newdecimal.test:
        Innobase bug moved to the innodb.test
      7fd4da5f
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0 · 39cf36d6
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      39cf36d6
    • unknown's avatar
      item.cc: · 566dfcbe
      unknown authored
        After merge fix.
      
      
      sql/item.cc:
        After merge fix.
      566dfcbe
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 0b7936e0
      unknown authored
      into  mysql.com:/media/sda1/mysql/mysql-5.0-10760-new
      
      0b7936e0
    • unknown's avatar
      Implement MarkM optimization request to avoid redundnat packet exchange · de290880
      unknown authored
      in cursors.
      
      
      libmysql/libmysql.c:
        - reset_stmt_handle(): don't reset the server side just because we have 
          an open cursor: the server will close the cursor automatically if 
          needed
      sql/sql_prepare.cc:
        - implement Prepared_statement::close_cursor,
        - implicitly close an open cursor in mysql_stmt_execute instead of 
          issuing an error (to reduce the need to explicitly close cursors
          and save network bandwidth).
        - cleanup
      sql/sql_select.cc:
        Remove a destructor: cursor destruction can not be done by simply
        calling a destructor, because of cross-references between cursor
        and statement memory.
      sql/sql_select.h:
        - add an empty Cursor destructor
      tests/mysql_client_test.c:
        - remove a test for dropped functionality
      de290880
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 253af6eb
      unknown authored
      into  mysql.com:/opt/local/work/mysql-4.1-root
      
      253af6eb
    • unknown's avatar
      A fix and a test case for Bug#9735. · a59ef1a3
      unknown authored
      No separate typecode for MEDIUMTEXT/LONGTEXT is added, as we
      have no sound decision yet what typecodes and for what types are
      sent by the server (aka what constitutes a distinct type in MySQL).
      
      
      
      mysql-test/r/ps_2myisam.result:
        Test results fixed: new longtext/longblob length (2^32)
      mysql-test/r/ps_3innodb.result:
        Test results fixed: new longtext/longblob length (2^32)
      mysql-test/r/ps_4heap.result:
        Test results fixed: new longtext/longblob length (2^32)
      mysql-test/r/ps_5merge.result:
        Test results fixed: new longtext/longblob length (2^32)
      mysql-test/r/ps_6bdb.result:
        Test results fixed: new longtext/longblob length (2^32)
      mysql-test/r/ps_7ndb.result:
        Test results fixed: new longtext/longblob length (2^32)
      sql/field.cc:
        A fix for Bug#9735 "mysql_fetch_fields() acts strange on 
        LONGBLOB/LONGTEXT": fix wrong initialization of field_length
        in case of BLOB fields.
      tests/mysql_client_test.c:
        A test case for Bug#9735  "mysql_fetch_fields() acts strange on 
        LONGBLOB/LONGTEXT"
      a59ef1a3
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1.num-conv · d5fc7db5
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0
      
      
      mysql-test/r/ctype_utf8.result:
        Auto merged
      mysql-test/t/ctype_utf8.test:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/item.cc:
        After merge fix.
      d5fc7db5
    • unknown's avatar
      valgrind error fix(uninitialiased variable) · d44eb09a
      unknown authored
      removed unnecessary operation
      
      
      sql/sql_lex.cc:
        valgrind error fix(uninitialiased variable)
      sql/sql_parse.cc:
        removed unnecessary operation
      d44eb09a
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · c2192cd1
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-4.1.num-conv
      
      
      mysql-test/r/ctype_utf8.result:
        Auto merged
      mysql-test/t/ctype_utf8.test:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      c2192cd1
  2. 13 Jul, 2005 19 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 783c7737
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      783c7737
    • unknown's avatar
      Post-merge fixes. · 7f640e55
      unknown authored
      7f640e55
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · b6320000
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-mysqlproc
      
      b6320000
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-9379 · 5526fd9f
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      mysql-test/r/ps.result:
        Manual merge.
      mysql-test/t/ps.test:
        Manual merge.
      5526fd9f
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.0 · e8c165bb
      unknown authored
      into mysql.com:/M50/mysql-5.0
      
      
      VC++Files/tests/mysql_client_test.dsp:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      e8c165bb
    • unknown's avatar
      A test case for Bug#9442 "Set parameter make query fail if column · c5775210
      unknown authored
      character set is UCS2".
      The bug is no longer repeatable.
      
      
      mysql-test/r/ps.result:
        Test results fixed (a test case for Bug#9442)
      mysql-test/t/ps.test:
        A test case for Bug#9442 "Set parameter make query fail if column 
        character set is UCS2
      c5775210
    • unknown's avatar
      Merging separate commits into 5.0.9-beta build clone and general BK tree. · f7bfb97e
      unknown authored
      Tagging the 5.0.9-beta release.
      
      
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      VC++Files/tests/mysql_client_test.dsp:
        Merging separate commits into 5.0.9-beta build clone and general BK tree.
      sql/sql_insert.cc:
        Merging separate commits into 5.0.9-beta build clone and general BK tree.
      f7bfb97e
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · c4339546
      unknown authored
      into  mysql.com:/home/dlenev/src/mysql-5.0-mysqlproc
      
      c4339546
    • unknown's avatar
      Now when we create or drop trigger we will open only subject table and not · a6ad1c5e
      unknown authored
      all tables suggested by prelocking algorithm.
      Added test for bug #11889 "Server crashes when dropping trigger using stored
      routine" (which was fixed by previous patch).
      
      
      mysql-test/r/trigger.result:
        Since we are using open_ltable() now to open table for trigger creation, code
        for error when we try to create trigger on view has changed to equivalent one.
        Added test for bug #11889 "Server crashes when dropping trigger using stored
        routine".
      mysql-test/t/trigger.test:
        Since we are using open_ltable() now to open table for trigger creation, code
        for error when we try to create trigger on view has changed to equivalent one.
        Added test for bug #11889 "Server crashes when dropping trigger using stored
        routine".
      sql/sql_trigger.cc:
        mysql_create_or_drop_trigger():
          It is better to open only table for which we are going to create or drop
          trigger with open_ltable() since we don't really need working prelocking
          in this case.
      a6ad1c5e
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-9379 · 33be7223
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      sql/item.cc:
        Auto merged
      mysql-test/r/ps.result:
        Manual merge.
      mysql-test/t/ps.test:
        Manual merge.
      sql/item_func.cc:
        Manual merge.
      33be7223
    • unknown's avatar
      A fix and a test case for Bug#9379 (collation of a parameter marker is · 346dfa00
      unknown authored
      binary).
      
      
      mysql-test/r/ps.result:
        Test results fixed (Bug#9379)
      mysql-test/t/ps.test:
        A test case for Bug#9379 (collation of a parameter marker is binary)
      sql/item.cc:
        - set Item_param::collation to str_value collation, if Item_param
        is assigned a string. Reset it to default in Item_param::reset() (on 
        the next execution it can be assigned a number).
      sql/item_func.cc:
        - now that item collation can change between executions
        (if this item is Item_param), we need to register the change
        of the execution tree in the rollback list.
      346dfa00
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-11458 · a8f13702
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      configure.in:
        Manual merge
      mysql-test/r/ps.result:
        Manual merge
      mysql-test/t/ps.test:
        Manual merge
      a8f13702
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 621a12d8
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      621a12d8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 207284e8
      unknown authored
      into  mysql.com:/opt/local/work/mysql-4.1-11458
      
      207284e8
    • unknown's avatar
      Merge mysql.com:/opt/local/work/mysql-4.1-11458 · e199a025
      unknown authored
      into  mysql.com:/opt/local/work/mysql-5.0-root
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      mysql-test/r/ps.result:
        Manual merge.
      mysql-test/t/ps.test:
        Manual merge.
      sql/item.cc:
        Manual merge.
      sql/item.h:
        Manual merge.
      sql/item_subselect.h:
        Manual merge.
      sql/sql_parse.cc:
        Manual merge.
      sql/sql_prepare.cc:
        Manual merge.
      e199a025
    • unknown's avatar
      Cleanup after test for Bug#11458 · 5f68aec7
      unknown authored
      5f68aec7
    • unknown's avatar
      4.1.13 has been cloned off · 6b7a2021
      unknown authored
      
      configure.in:
        Increase version number to 4.1.14, as the clone for 4.1.13 has been created.
      6b7a2021
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · eff6e36a
      unknown authored
      into  mysql.com:/opt/local/work/mysql-4.1-11458
      
      
      sql/mysql_priv.h:
        Auto merged
      eff6e36a
    • unknown's avatar
      - a fix for Bug#11458 "Prepared statement with subselects return random · 27303b09
      unknown authored
      data": remove the fix for another bug (8807) that
      added OUTER_REF_TABLE_BIT to all subqueries that used a placeholder
      to prevent their evaluation at prepare. As this bit hanged in 
      Item_subselect::used_tables_cache for ever, a constant subquery with
      a placeholder was never evaluated as such, which caused wrong 
      choice of the execution plan for the statement.
      - to fix Bug#8807 backport a better fix from 5.0
      - post-review fixes.
      
      
      mysql-test/r/ps.result:
        Bug#11458: test results fixed
      mysql-test/t/ps.test:
        - add a test case for Bug#11458 "Prepared statement with subselects return 
        random data"
      sql/item.cc:
        - remove unnecessary Item_param::fix_fields
        - fix Item_param::set_null to set item_type accordingly (safety:
          Item_param should behave like a basic constant).
      sql/item.h:
        Remove Item_param::fix_fields
      sql/item_subselect.h:
        Remove no more existing friend.
      sql/mysql_priv.h:
        Add UNCACHEABLE_PREPARE to mark all subqueries as uncacheable if
        in statement prepare (backport from 5.0).
      sql/sql_lex.h:
        Comment fixed.
      sql/sql_parse.cc:
        If in statement prepare, mark all subqueries as uncacheable (backport
        from 5.0)
      sql/sql_prepare.cc:
        Switch off the uncacheable flag from all subqueries after statement
        prepare is done (backport from 5.0)
      27303b09