1. 20 Oct, 2003 1 commit
    • unknown's avatar
      Bugfix; added another method to Item_splocal, updated tests, and added previous · 2b1dc5f3
      unknown authored
      fix to functions as well.
      
      
      mysql-test/r/sp.result:
        Modified test to trap yet another bug (now fixed).
      mysql-test/t/sp.test:
        Modified test to trap yet another bug (now fixed).
      sql/item.h:
        Another bugfix; need to override yet another method in Item_splocal.
      sql/sp_head.cc:
        Completed previous initialization bug; now for FUNCTIONs. too.
      2b1dc5f3
  2. 17 Oct, 2003 1 commit
    • unknown's avatar
      Bugfix. Local variables are now initialized to null. · 82e5115a
      unknown authored
      
      mysql-test/r/sp.result:
        New test case for bugfix (when a variable is not set due to an exception).
      mysql-test/t/sp.test:
        New test case for bugfix (when a variable is not set due to an exception).
      sql/item.h:
        Local variables are initialized to null.
      sql/sp_head.cc:
        Local variables are initialized to null.
      82e5115a
  3. 16 Oct, 2003 1 commit
    • unknown's avatar
      Handle user variables (@-vars) as OUT and INOUT parameters in SPs. · 12a0546d
      unknown authored
      
      mysql-test/r/sp.result:
        Test cases for user variables (@-vars) as OUT and INOUT parameters.
      mysql-test/t/sp.test:
        Test cases for user variables (@-vars) as OUT and INOUT parameters.
      sql/item_func.h:
        We need to be able to detect Item_func_get_user_vars when used as arguments to SPs.
      sql/sp_head.cc:
        Handle user variables (@-vars) as OUT and INOUT parameters.
        But we still just ignore it, if it's anything else.
      12a0546d
  4. 15 Oct, 2003 1 commit
    • unknown's avatar
      Fix for BUG#1547: "SELECT ... WHERE field = var" sometimes give the wrong result in SPs · 9aa680a0
      unknown authored
      Two missing methods added to Item_splocal + test case.
      
      
      mysql-test/r/sp.result:
        Test case for BUG#1547
      mysql-test/t/sp.test:
        Test case for BUG#1547
      sql/item.h:
        Fix for BUG#1547: "SELECT ... WHERE field = var" sometimes give the wrong result in SPs
        
        Added missing methods to Item_splocal to get the correct compare function
        and make the optimizer do the right thing.
      9aa680a0
  5. 14 Oct, 2003 1 commit
    • unknown's avatar
      Fix for BUG#1495: Evaluate items before setting a local variable with SELECT INTO. · 776784b8
      unknown authored
      Also copy and restore order_list and group_list for selects in SPs.
      
      
      mysql-test/r/sp.result:
        Test for BUG#1495, and an additional cursor test.
      mysql-test/t/sp.test:
        Test for BUG#1495, and an additional cursor test.
      sql/sp_head.cc:
        Fix BUG#1495: renamed eval_func_item() into sp_eval_func_item() and made it
        non-static.
        Also need to copy and restore order_list and group_list pointers before and
        after execution of a substatement. (Which means these must always be properly
        initialized for all queries.)
      sql/sp_rcontext.cc:
        Fix BUG#1495: Evaluate and set a local variable (for SELECT INTO).
      sql/sp_rcontext.h:
        Fix BUG#1495: Evaluate and set a local variable (for SELECT INTO).
      sql/sql_class.cc:
        Fix BUG#1495: Evaluate and set a local variable (for SELECT INTO).
      sql/sql_class.h:
        Fix BUG#1495: Evaluate and set a local variable (for SELECT INTO); need type for this.
      sql/sql_parse.cc:
        order_list and group_list must be initialized in select_lex for all queries,
        to make SP sub statement execution work.
      sql/sql_yacc.yy:
        Type needed for setting local variables.
      sql/table.h:
        Need a copy of the Item* pointer when executing sub-statements in SPs. (Since
        it's modified and must be restored afterwards.)
      776784b8
  6. 10 Oct, 2003 2 commits
    • unknown's avatar
      Merge mysql.com:/usr/local/bk/mysql-5.0 · 569e72af
      unknown authored
      into mysql.com:/home/pem/work/mysql-5.0
      
      
      sql/sql_yacc.yy:
        Auto merged
      569e72af
    • unknown's avatar
      WL#962: Added simple, read-only, non-scrolling, asensitive cursors in SPs, using the · 04c6b9b8
      unknown authored
      (updated) Protocol_cursor class.
      Also did some bug fixes.
      
      
      Docs/sp-imp-spec.txt:
        Added CURSOR docs (and fixed typos)
      Docs/sp-implemented.txt:
        Updated for CURSORs
      include/mysqld_error.h:
        New error codes/messages for CURSORs
      libmysqld/Makefile.am:
        SP cursors now needs this.
      mysql-test/r/sp-error.result:
        New tests for cursors.
      mysql-test/r/sp.result:
        New tests for cursors.
      mysql-test/t/sp-error.test:
        New tests for cursors.
      mysql-test/t/sp.test:
        New tests for cursors.
      sql/protocol.cc:
        We now always have Protocol_cursor (SPs use it)
      sql/protocol.h:
        Fixed bugs in Protocol_cursor (for SPs)
      sql/protocol_cursor.cc:
        Fixed bugs in Protocol_cursor (for SPs)
      sql/share/czech/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/danish/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/dutch/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/english/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/estonian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/french/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/german/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/greek/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/hungarian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/italian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/japanese/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/korean/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/norwegian-ny/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/norwegian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/polish/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/portuguese/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/romanian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/russian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/serbian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/slovak/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/spanish/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/swedish/errmsg.txt:
        New error codes/messages for CURSORs
      sql/share/ukrainian/errmsg.txt:
        New error codes/messages for CURSORs
      sql/sp_head.cc:
        Added cursor support.
        Also fixed problems with item_lists, where pointers and ref_pointer_arrays.
      sql/sp_head.h:
        Added cursor support
      sql/sp_pcontext.cc:
        Added cursor support
      sql/sp_pcontext.h:
        Added cursor support
      sql/sp_rcontext.cc:
        Added cursor support, in particular the new sp_cursor class.
      sql/sp_rcontext.h:
        Added cursor support, in particular the new sp_cursor class.
      sql/sql_lex.h:
        We sometimes need to copy item_lists in LEX when executing substatements in SPs
      sql/sql_yacc.yy:
        Added minimal cursor support (not the full syntax yet).
      04c6b9b8
  7. 06 Oct, 2003 2 commits
  8. 03 Oct, 2003 2 commits
    • unknown's avatar
      Check that a FUNCTION contains RETURN and that we actually get a return value. · 4379cbcf
      unknown authored
      
      include/mysqld_error.h:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      mysql-test/r/sp-error.result:
        New error tests for missing RETURNs in FUNCTIONs.
      mysql-test/t/sp-error.test:
        New error tests for missing RETURNs in FUNCTIONs.
      sql/share/czech/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/danish/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/dutch/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/english/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/estonian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/french/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/german/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/greek/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/hungarian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/italian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/japanese/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/korean/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/norwegian-ny/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/norwegian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/polish/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/portuguese/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/romanian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/russian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/serbian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/slovak/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/spanish/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/swedish/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/share/ukrainian/errmsg.txt:
        New error codes/messages for missing RETURNs in FUNCTIONs.
      sql/sp_head.h:
        Check that a FUNCTION contains RETURN.
      sql/sql_parse.cc:
        Check that a FUNCTION contains RETURN.
      sql/sql_yacc.yy:
        Check that a FUNCTION contains RETURN.
      4379cbcf
    • unknown's avatar
      Fixed BUG#822: Copying and clearing some things in thd/lex when · 869b49ef
      unknown authored
      executing sub-statements (selects) prevents crashes intermittent
      crashes.
      Also fixed bug in sql_yacc.yy (generated a hpop instruction when
      not needed).
      
      
      mysql-test/r/sp.result:
        Test-case for BUG#822.
      mysql-test/t/sp.test:
        Test-case for BUG#822.
      sql/sp_head.cc:
        Fixed BUG#822; needed to copy and clear some stuff when calling sub-statements.
      sql/sql_yacc.yy:
        Only generate hpop instruction when we actually have handlers.
      869b49ef
  9. 02 Oct, 2003 1 commit
  10. 01 Oct, 2003 2 commits
  11. 28 Sep, 2003 1 commit
    • unknown's avatar
      Merge laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · bb9a92cc
      unknown authored
      into laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-udf-5.0
      
      
      include/mysql_com.h:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/udf_example.cc:
        Auto merged
      bb9a92cc
  12. 24 Sep, 2003 4 commits
    • unknown's avatar
      Post-merge fixes. · 03042c7d
      unknown authored
      03042c7d
    • unknown's avatar
      Merging 4.1 -> 5.0 · cd8508d3
      unknown authored
      
      BitKeeper/etc/ignore:
        auto-union
      BitKeeper/etc/logging_ok:
        auto-union
      client/mysql.cc:
        Auto merged
      configure.in:
        Auto merged
      include/my_pthread.h:
        Auto merged
      include/mysql_com.h:
        Auto merged
      libmysql/libmysql.c:
        Auto merged
      BitKeeper/deleted/.del-sel000100.result~84ed46856cb3a69f:
        Auto merged
      BitKeeper/deleted/.del-sel000100.test~548501cad19a1a59:
        Auto merged
      myisam/mi_check.c:
        Auto merged
      myisam/myisamchk.c:
        Auto merged
      mysql-test/r/connect.result:
        Auto merged
      mysql-test/r/show_check.result:
        Auto merged
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/symlink.result:
        Auto merged
      mysql-test/t/subselect.test:
        Auto merged
      mysys/my_pthread.c:
        Auto merged
      scripts/mysql_create_system_tables.sh:
        Auto merged
      scripts/mysql_install_db.sh:
        Auto merged
      sql/filesort.cc:
        Auto merged
      sql/ha_berkeley.cc:
        Auto merged
      sql/ha_innodb.cc:
        Auto merged
      sql/ha_myisam.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_create.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      sql/item_func.h:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      sql/item_sum.cc:
        Auto merged
      sql/lex.h:
        Auto merged
      sql/lock.cc:
        Auto merged
      sql/log.cc:
        Auto merged
      sql/log_event.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/protocol.cc:
        Auto merged
      sql/records.cc:
        Auto merged
      sql/repl_failsafe.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/slave.cc:
        Auto merged
      sql/sql_acl.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_cache.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_class.h:
        Auto merged
      sql/sql_db.cc:
        Auto merged
      sql/sql_derived.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_load.cc:
        Auto merged
      sql/sql_repl.cc:
        Auto merged
      sql/sql_repl.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      sql/sql_update.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      cd8508d3
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 4e09f14b
      unknown authored
      into narttu.mysql.fi:/my/mysql-4.1
      
      
      sql/sql_parse.cc:
        Auto merged
      4e09f14b
    • unknown's avatar
      - Code cleanup: replaced C++-style comments with the proper syntax for · 07001f78
      unknown authored
         .c files (the IBM Visual Age C compiler aborts with a syntax error
         on these)
      
      
      libmysql/dll.c:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      libmysql/libmysql.c:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      mysys/my_getopt.c:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      sql/net_serv.cc:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      strings/ctype-bin.c:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      tests/client_test.c:
         - replaced C++-style comment with the proper syntax for .c files
           (the IBM Visual Age C compiler aborts with a syntax error on these)
      07001f78
  13. 23 Sep, 2003 6 commits
  14. 22 Sep, 2003 8 commits
  15. 20 Sep, 2003 1 commit
  16. 19 Sep, 2003 6 commits
    • unknown's avatar
      comp_err.c: · d2989680
      unknown authored
        There are some problems compiling with pure "configure"
        I need to fix it first.
      
      
      extra/comp_err.c:
        There are some problems compiling with pure "configure"
        I need to fix it first.
      d2989680
    • unknown's avatar
      New test for UTF8 functionality · 4935e67c
      unknown authored
      4935e67c
    • unknown's avatar
      Merge abarkov@build.mysql.com:/home/bk/mysql-4.1 · 127d402e
      unknown authored
      into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1
      
      
      sql/item_func.cc:
        Auto merged
      127d402e
    • unknown's avatar
      Fixed that multibyte charsets didn't honor multibyte · 44bffa0b
      unknown authored
      sequence boundaries in functions LIKE and LOCATE in
      the case of "binary" collation. Comparison was done
      like if the strings were just a binary strings without
      character set assumption.
      
      
      44bffa0b
    • unknown's avatar
      SCRUM · 2d46389a
      unknown authored
      embedded library
      hash_insert renamed to my_hash_insert to avoid name intersection
      with another libraries
      is there better idea?
      
      
      client/mysqltest.c:
        hash_insert ->my_hash_insert
      include/hash.h:
        hash_insert ->my_hash_insert
      mysys/hash.c:
        hash_insert ->my_hash_insert
      mysys/testhash.c:
        hash_insert ->my_hash_insert
      sql/ha_berkeley.cc:
        hash_insert ->my_hash_insert
      sql/ha_innodb.cc:
        hash_insert ->my_hash_insert
      sql/hash_filo.h:
        hash_insert ->my_hash_insert
      sql/item_func.cc:
        hash_insert ->my_hash_insert
      sql/lock.cc:
        hash_insert ->my_hash_insert
      sql/repl_failsafe.cc:
        hash_insert ->my_hash_insert
      sql/set_var.cc:
        hash_insert ->my_hash_insert
      sql/slave.cc:
        hash_insert ->my_hash_insert
      sql/sql_acl.cc:
        hash_insert ->my_hash_insert
      sql/sql_base.cc:
        hash_insert ->my_hash_insert
      sql/sql_cache.cc:
        hash_insert ->my_hash_insert
      sql/sql_parse.cc:
        hash_insert ->my_hash_insert
      sql/sql_select.cc:
        hash_insert ->my_hash_insert
      sql/sql_udf.cc:
        hash_insert ->my_hash_insert
      sql/table.cc:
        hash_insert ->my_hash_insert
      tools/mysqlmanager.c:
        hash_insert ->my_hash_insert
      2d46389a
    • unknown's avatar
      SCRUM · 6e922478
      unknown authored
      embedded library
      missed memory freeing added
      
      
      libmysqld/embedded_priv.h:
        declaration added
      libmysqld/lib_sql.cc:
        implementation added
      libmysqld/libmysqld.c:
        mysql->thd releasing
      6e922478