1. 04 Jul, 2006 1 commit
    • unknown's avatar
      A fix and a test case for Bug#17843 "Certain stored procedures fail to · 824c616c
      unknown authored
      run at startup"
      
      The server returned an error when trying to execute init-file with a 
      stored procedure that could return multiple result sets to the client. 
      A stored procedure can return multiple result sets if it contains 
      PREPARE, SELECT, SHOW and similar statements.
         
      The fix is to set client_capabilites|=CLIENT_MULTI_RESULTS in
      sql_parse.cc:handle_bootstrap(). There is no "client" really, so 
      nothing is ever sent. This makes init-file feature behave consistently: 
      the prepared statements that can be called directly in the init-file 
      can be used in a stored procedure too.
      
      Re-committed the patch originally submitted by Per-Erik after review.
      
      
      mysql-test/Makefile.am:
        Fix re-make without make clean.
      mysql-test/r/init_connect.result:
        Updated results (a test case for Bug#17843)
      mysql-test/r/init_file.result:
        Updated results (a test case for Bug#17843)
      mysql-test/std_data/init_file.dat:
        Add test coverage for new features added in 5.0. Note, that what can 
        be done in init_file is very limited as it does not support any other
        delimiter except ';' -- only "one liners" and no multiple statement 
        procedures. Also, this is executed with a dummy user "boot@", which 
        calls for the use of DEFINER clause.
      mysql-test/t/init_connect.test:
        Add test coverage for new features added in 5.0.
      mysql-test/t/init_file.test:
        Add test coverage for new features added in 5.0 --
        stored routines, views, triggers. The actual tests are in 
        std_data/init_file.dat, here we just check the results and clean up.
      sql/sql_class.cc:
        Initialize Security_context::priv_host to an empty string:
        when executing an init-file, sql_parse.cc:get_default_definer()
        will use this for the value of the definer if it's not set in the query.
      sql/sql_parse.cc:
        Set CLIENT_MULTI_RESULTS in handle_bootstrap(), to make prepared
        statements work in stored procedures called from init-file.
      824c616c
  2. 03 Jul, 2006 2 commits
  3. 01 Jul, 2006 3 commits
  4. 30 Jun, 2006 25 commits
    • unknown's avatar
      Merge mysql.com:/home/psergey/mysql-4.1-bug16168-push · 8edaa435
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.0-bug16168-merge
      
      
      mysql-test/t/range.test:
        Auto merged
      mysql-test/r/range.result:
        SCCS merged
      sql/opt_range.cc:
        SCCS merged
      8edaa435
    • unknown's avatar
      Remove an unused variable. · 5c1b5f02
      unknown authored
      5c1b5f02
    • unknown's avatar
      Remove a couple of unused/barely used names. · 6d85bacf
      unknown authored
      
      sql/sql_lex.cc:
        Remove an unused thread key.
      sql/sql_lex.h:
        Remove an unused thread key, current_lex.
      sql/sql_parse.cc:
        Remove an unused thread key, current_lex macro.
      6d85bacf
    • unknown's avatar
      After merge fixes · f0dafc53
      unknown authored
      
      BitKeeper/etc/ignore:
        added scripts/mysql_upgrade_shell
      include/my_handler.h:
        my_handler.h should not include my_global.h
      mysql-test/r/key.result:
        Update results after merge
      f0dafc53
    • unknown's avatar
      Merge mysql.com:/home/my/mysql-4.1 · ad2dacd7
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      libmysql/libmysql.c:
        Auto merged
      mysql-test/mysql-test-run.sh:
        Auto merged
      mysql-test/t/key.test:
        Auto merged
      sql/table.cc:
        Auto merged
      mysql-test/r/key.result:
        Manual merge
      mysql-test/t/mysqldump.test:
        Manual merge
        (Now we have same code as in 4.1 and 5.1)
      sql/ha_ndbcluster.cc:
        Manual merge
        Change %ll -> llstr()
      tests/mysql_client_test.c:
        manual merge
      ad2dacd7
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 4283d414
      unknown authored
      into  mysql.com:/home/my/mysql-4.1
      
      4283d414
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 0f94912c
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-main
      
      0f94912c
    • unknown's avatar
      Reverted wrong bug fix (Bug#11228) · a616b65e
      unknown authored
      
      mysql-test/r/key.result:
        Fixed result after removing wrong bug fix
      mysql-test/t/key.test:
        Added SHOW CREATE TABLE, which is the proper way to check for table definitions
      sql/table.cc:
        Reverted wrong bug fix.
        The intention with the original code was to show that MySQL treats the first
        given unique key as a primary key. Clients can use the marked primary key as a
        real primary key to validate row changes in case of conflicting updates.  The
        ODBC driver (and other drivers) may also use this fact to optimize/check
        updates and handle conflicts.  The marked key also shows what some engines, like InnoDB or NDB,
        will use as it's internal primary key.
        
        For checking if someone has declared a true PRIMARY KEY, one should use 'SHOW CREATE TABLE'
      a616b65e
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1 · b47fad85
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-main
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      b47fad85
    • unknown's avatar
      adopted ndb handler code for tables without primary key and with unique index · 8d294dde
      unknown authored
      - added missing retrieval of hidden primary key
      
      8d294dde
    • unknown's avatar
      Bug#17226: Variable set in cursor on first iteration is assigned · 9a68a2db
      unknown authored
                 second iterations value
      
      During assignment to the BLOB variable in routine body the value
      wasn't copied.
      
      
      mysql-test/r/sp-vars.result:
        Add result for bug#17226.
      mysql-test/t/sp-vars.test:
        Add test case for bug#17226.
      sql/field_conv.cc:
        Honor copy_blobs flag.
      9a68a2db
    • unknown's avatar
      Merge mysqldev@production:my/mysql-5.0-release · 4c9c37af
      unknown authored
      into  mysql.com:/usr/local/mysql/tmp-5.0
      
      
      include/my_global.h:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      4c9c37af
    • unknown's avatar
      Fix Windows build problem following previous push. · aa1771cc
      unknown authored
      
      strings/strtod.c:
        Fix Windows build problem, EOVERFLOW is defined in my_base.h on Windows.
      aa1771cc
    • unknown's avatar
      Merge mysql.com:/home/tomash/src/mysql_ab/mysql-4.1 · 97be8821
      unknown authored
      into  mysql.com:/home/tomash/src/mysql_ab/mysql-4.1-bug20152
      
      97be8821
    • unknown's avatar
      bug #20152: mysql_stmt_execute() overwrites parameter buffers · ef41021f
      unknown authored
      When using a parameter bind MYSQL_TYPE_DATE in a prepared statement,
      the time part of the MYSQL_TIME buffer was written to zero in
      mysql_stmt_execute(). The param_store_date() function in libmysql.c
      worked directly on the provided buffer.
      Changed to use a copy of the buffer.
      
      
      libmysql/libmysql.c:
        fix for bug #20152
      tests/mysql_client_test.c:
        added test for bug#20152
      ef41021f
    • unknown's avatar
      Merge mysqldev@production.mysql.com:my/mysql-5.0-release · 28a47763
      unknown authored
      into  mysql.com:/usr/local/mysql/mysql-5.0-release
      
      28a47763
    • unknown's avatar
      BUG#20769: Dangling pointer in ctype_recoding test case. · 17c4a2ea
      unknown authored
      In some functions dealing with strings and character sets, the wrong
      pointers were saved for restoration in THD::rollback_item_tree_changes().
      This could potentially cause random corruption or crashes.
      
      Fixed by passing the original Item ** locations, not local stack copies.
      
      Also remove unnecessary use of default arguments.
      
      
      sql/item.cc:
        Function agg_item_charsets() now handles non-consequtive Item *'s.
      sql/item.h:
        Remove use of default argument.
      sql/item_cmpfunc.cc:
        Remove use of default argument.
      sql/item_func.cc:
        Remove use of default argument.
      sql/item_func.h:
        Function agg_item_charsets() now handles non-consequtive Item *'s.
      sql/item_strfunc.cc:
        Pass original Item **'s to agg_arg_charsets(), not local copies, to ensure
        proper restoration in THD::rollback_item_tree_changes().
      sql/item_sum.cc:
        Remove use of default argument.
      17c4a2ea
    • unknown's avatar
      BUG#16168: Wrong results from range optimizer, "Use_count: Wrong count for key ..." warnings: · 33ce9856
      unknown authored
       - Added comments.
       - Make SEL_ARG::clone() set SEL_ARG::elements in the created copy.
      
      
      mysql-test/r/range.result:
        BUG#16168: Testcase
      mysql-test/t/range.test:
        BUG#16168: Testcase
      33ce9856
    • unknown's avatar
      Merge mysql.com:/home/emurphy/src/bk-clean/mysql-4.1 · 7f743192
      unknown authored
      into  mysql.com:/home/emurphy/src/bk-clean/mysql-5.0
      
      
      configure.in:
        Auto merged
      7f743192
    • unknown's avatar
      Fixing windows build. · 673bb07d
      unknown authored
      
      strings/strtod.c:
        Reverting previous change to include files (angle brackets instead of
        quotes) that broke windows build
      673bb07d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 5d95bc12
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/func_time.result:
        Auto merged
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/func_sapdb.test:
        Auto merged
      mysql-test/t/func_time.test:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      5d95bc12
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 8ecfe319
      unknown authored
      into  mysql.com:/home/my/mysql-4.1
      
      8ecfe319
    • unknown's avatar
      Merge monty@192.168.0.9:/home/my/mysql-4.1 · dbbbf1b5
      unknown authored
      into  mysql.com:/home/my/mysql-4.1
      
      dbbbf1b5
    • unknown's avatar
      Don't read ~/.my.cnf in mysqldump.test · aa5ecc4c
      unknown authored
      
      heap/hp_test1.c:
        Changed type from last commit
      mysql-test/mysql-test-run.sh:
        Fixed problem with running with --gdb and two masters
        Don't disable ndb becasue we run gdb
      mysql-test/t/mysqldump.test:
        Don't read ~/.my.cnf
      sql/ha_ndbcluster.cc:
        Portability fix
      aa5ecc4c
    • unknown's avatar
      mysql.spec.sh: · ff2a1288
      unknown authored
        Disable old RPM strip
      my_global.h:
        Fixed wrong cast, which caused problems with gcc 4.0 and
        floats in prepared statements (Bug #19694)
      mysqlmanager.vcproj:
        Place output files in common release/debug directory
      
      
      server-tools/instance-manager/mysqlmanager.vcproj:
        Place output files in common release/debug directory
      include/my_global.h:
        Fixed wrong cast, which caused problems with gcc 4.0 and
        floats in prepared statements (Bug #19694)
      support-files/mysql.spec.sh:
        Disable old RPM strip
      ff2a1288
  5. 29 Jun, 2006 9 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · cded8736
      unknown authored
      into  mysql.com:/home/my/mysql-4.1
      
      cded8736
    • unknown's avatar
      Merge mysql.com:/home/my/mysql-4.1 · e3ad6f18
      unknown authored
      into  mysql.com:/home/my/mysql-5.0
      
      
      include/my_global.h:
        Auto merged
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/func_sapdb.test:
        Auto merged
      mysys/my_handler.c:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      strings/strtod.c:
        Auto merged
      mysql-test/r/func_time.result:
        Manual merge
      mysql-test/t/func_time.test:
        Manual merge
      e3ad6f18
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1 · b9def2da
      unknown authored
      into sunlight.local:/local_work/autopush/merge-4.1
      
      b9def2da
    • unknown's avatar
      Fixed include file usage · d7219467
      unknown authored
      hp_test2 now works again
      Fixed wrong cast, which caused problems with gcc 4.0 and floats in prepared statements (Bug #19694)
      
      
      heap/hp_test1.c:
        Portability fix
      heap/hp_test2.c:
        Added max_table_size (fixes that hp_test2 works again)
      include/my_global.h:
        Fixed wrong cast, which caused problems with gcc 4.0 (Bug #19694)
      mysys/my_handler.c:
        Added missing include file
      strings/strtod.c:
        Fixed include files
      d7219467
    • unknown's avatar
      Merge · 32cef5e2
      unknown authored
      
      mysql-test/r/func_sapdb.result:
        Auto merged
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/func_sapdb.test:
        Auto merged
      sql/item_timefunc.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      mysql-test/r/func_time.result:
        SCCS merged
      mysql-test/t/func_time.test:
        SCCS merged
      32cef5e2
    • unknown's avatar
      Merge moonbone.local:/home/evgen/bk-trees/mysql-5.0-opt · cc969329
      unknown authored
      into moonbone.local:/work/merge-5.0
      
      
      sql/sql_select.cc:
        Auto merged
      strings/ctype-mb.c:
        Auto merged
      cc969329
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main · 22112a6f
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/5.0-merge
      
      
      sql/ha_ndbcluster.cc:
        Auto merged
      22112a6f
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0 · c892c5c4
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/5.0-merge
      
      c892c5c4
    • unknown's avatar
      Merge mysql.com:/mnt/storeage/mysql-4.1 · 47c527d3
      unknown authored
      into  mysql.com:/mnt/storeage/mysql-4.1_bug19298
      
      47c527d3