- 19 Nov, 2003 1 commit
-
-
unknown authored
Fixed various bugs: setting local variables to NULL, SELECT INTO var now actually might work, SELECT INTO with not row now gives a "no data" warning (instead of the "empty query" error), etc. Updated test cases accordingly. mysql-test/r/sp-error.result: Corrected security syntax for alter/create procedure. mysql-test/r/sp.result: Corrected security syntax for alter/create procedure. New tests for setting local variables to null, bug fixes for SELECT INTO var, FLUSH TABLES calls (BUG#1862), and corrected "no data" warning for SELECT INTO with no rows. mysql-test/t/sp-error.test: Corrected security syntax for alter/create procedure. mysql-test/t/sp.test: Corrected security syntax for alter/create procedure. New tests for setting local variables to null, bug fixes for SELECT INTO var, FLUSH TABLES calls (BUG#1862), and corrected "no data" warning for SELECT INTO with no rows. sql/lex.h: Added SQL_SYM (and added a few _SYM suffixes for new symbols). sql/sp_head.cc: Fixed bug in the item_list copying for "with_wild" cases (list nodes ended up in the wrong memroot). Catch errors and warnings even if return values is 0 from sub-statements. Restore table_list which is zapped by SQLCOM_CREATE_TABLE and INSERT_SELECT. Set old table pointers to NULL after sub-statement call (since all tables are closed). sql/sql_class.cc: Corrected error message when no rows return by a SELECT INTO var; should be a "no data" warning. sql/sql_lex.h: Have to store the original table_list first pointer for some sub-statements in SPs. sql/sql_yacc.yy: Corrected SECURITY INVOKER/DEFINER syntax ("SQL" missing), added some _SYM suffixes, and fixed valgrind complaints for SP COMMENTs. (Also removed some now irrelevant comments.)
-
- 17 Nov, 2003 3 commits
-
-
unknown authored
into gluh.mysql.r18.ru:/home/gluh/mysql-5.0.sp sql/sp_head.cc: Auto merged
-
unknown authored
WL#1263: Support for the attributes COMMENT and SUID in CREATE/ALTER PROCEDURE/FUNCTION include/mysqld_error.h: Error code for 'alter procedure' mysql-test/r/sp-error.result: Test for WL#1241&WL#1263 mysql-test/r/sp.result: Test for WL#1241&WL#1263 mysql-test/t/sp-error.test: Test for WL#1241&WL#1263 mysql-test/t/sp.test: Test for WL#1241&WL#1263 sql/share/czech/errmsg.txt: Error massage for 'alter procedure' sql/share/danish/errmsg.txt: Error massage for 'alter procedure' sql/share/dutch/errmsg.txt: Error massage for 'alter procedure' sql/share/english/errmsg.txt: Error massage for 'alter procedure' sql/share/estonian/errmsg.txt: Error massage for 'alter procedure' sql/share/french/errmsg.txt: Error massage for 'alter procedure' sql/share/german/errmsg.txt: Error massage for 'alter procedure' sql/share/greek/errmsg.txt: Error massage for 'alter procedure' sql/share/hungarian/errmsg.txt: Error massage for 'alter procedure' sql/share/italian/errmsg.txt: Error massage for 'alter procedure' sql/share/japanese/errmsg.txt: Error massage for 'alter procedure' sql/share/korean/errmsg.txt: Error massage for 'alter procedure' sql/share/norwegian-ny/errmsg.txt: Error massage for 'alter procedure' sql/share/norwegian/errmsg.txt: Error massage for 'alter procedure' sql/share/polish/errmsg.txt: Error massage for 'alter procedure' sql/share/portuguese/errmsg.txt: Error massage for 'alter procedure' sql/share/romanian/errmsg.txt: Error massage for 'alter procedure' sql/share/russian/errmsg.txt: Error massage for 'alter procedure' sql/share/serbian/errmsg.txt: Error massage for 'alter procedure' sql/share/slovak/errmsg.txt: Error massage for 'alter procedure' sql/share/spanish/errmsg.txt: Error massage for 'alter procedure' sql/share/swedish/errmsg.txt: Error massage for 'alter procedure' sql/share/ukrainian/errmsg.txt: Error massage for 'alter procedure'
-
unknown authored
-
- 14 Nov, 2003 1 commit
-
-
unknown authored
(For multi-lingual support.) Also fixed memory leak when aborting parsing for a duplicate cursor. include/mysqld_error.h: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) mysql-test/r/sp-error.result: Fixed error message for duplicate variable. mysql-test/t/sp-error.test: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/czech/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/danish/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/dutch/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/english/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/estonian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/french/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/german/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/greek/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/hungarian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/italian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/japanese/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/korean/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/norwegian-ny/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/norwegian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/polish/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/portuguese/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/romanian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/russian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/serbian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/slovak/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/spanish/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/swedish/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.) sql/share/ukrainian/errmsg.txt: Changed single generic error code/message into different ones for duplicate things. (For multi-lingual support.)
-
- 13 Nov, 2003 1 commit
-
-
unknown authored
- Duplicate parameters/variables, conditions and cursors (not allowed). - ITERATE in labelled BEGIN-END (not allowed). - Missing SQLSTATE [VALUE] keywords in CONDITION/HANDLER declaration (added). - Empty BEGIN-END (now allowed). - End label (now optional). include/mysqld_error.h: New error code for duplicate things (vars et al) in SPs. mysql-test/r/sp-error.result: New error tests for ITERATE in begin-end block and duplicate variables, conditions and cursors. mysql-test/r/sp.result: New tests for empty begin-end blocks, overriding local variables outside scope only, leave a begin-end block, and SQLSTATE [VALUE] words for CONDITION/HANDLER declarations. mysql-test/t/sp-error.test: New error tests for ITERATE in begin-end block and duplicate variables, conditions and cursors. mysql-test/t/sp.test: New tests for empty begin-end blocks, overriding local variables outside scope only, leave a begin-end block, and SQLSTATE [VALUE] words for CONDITION/HANDLER declarations. sql/lex.h: New SQLSTATE keyword. sql/share/czech/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/danish/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/dutch/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/english/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/estonian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/french/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/german/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/greek/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/hungarian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/italian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/japanese/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/korean/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/norwegian-ny/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/norwegian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/polish/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/portuguese/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/romanian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/russian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/serbian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/slovak/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/spanish/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/swedish/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/share/ukrainian/errmsg.txt: New error message for duplicate things (vars et al) in SPs. sql/sp_pcontext.cc: Keep track on scope limits for error checking of duplicate variables, conditions and cursors. sql/sp_pcontext.h: Keep track on scope limits for error checking of duplicate variables, conditions and cursors. Also need to flag BEGIN labels to check for illegal ITERATEs. sql/sql_yacc.yy: End-labels in SPs loop and begin-end blocks are now optional. SQLSTATE [VALUE] added to syntax for sqlstates. Check for duplicate variable, condition and cursor declarations, but only in the same scope. Empty BEGIN-END statements now allowed. Check if ITERATE is referring to a BEGIN label.
-
- 30 Oct, 2003 4 commits
-
-
unknown authored
into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/wl1280-part1
-
unknown authored
sql/handler.cc: Revert behaviour to pass tests
-
unknown authored
into mysql.com:/home/pem/work/mysql-5.0
-
unknown authored
sql/sp.cc: Added more error handling for abnormal cases (like a broken mysql.proc table), and made the field indexing clearer, using defines instead of explicit numbers.
-
- 28 Oct, 2003 3 commits
-
-
unknown authored
into pcgem.rdg.cyberkinetica.com:/usr/home/acurtis/work/wl1280-part1 BitKeeper/etc/logging_ok: auto-union sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/lex.h: Auto merged sql/sql_yacc.yy: Auto merged
-
unknown authored
This is a starting work to remove handler name dependencies from the Lex/Parser. sql/handler.h: WorkLog #1280, Stage 1 sql/lex.h: WorkLog #1280, Stage 1 sql/sql_yacc.yy: WorkLog #1280, Stage 1 sql/handler.cc: Use latin1 for string comparison BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
-
unknown authored
later set by the procedure. mysql-test/r/sp.result: Test case for BUG#1656 mysql-test/t/sp.test: Test case for BUG#1656
-
- 23 Oct, 2003 4 commits
-
-
unknown authored
into mysql.com:/home/pem/work/mysql-5.0 sql/item_sum.h: Auto merged
-
unknown authored
-
unknown authored
mysql-test/r/sp-error.result: Post-merge fixes. Error codes renumbered. mysql-test/r/sp.result: Post-merge fixes. Error codes renumbered. mysql-test/r/variables.result: Post-merge fixes. Error codes renumbered. mysql-test/t/sp-error.test: Post-merge fixes. Error codes renumbered. mysql-test/t/sp.test: Post-merge fixes. Error codes renumbered. sql/item_subselect.cc: Post-merge fixes. thd->lex is a pointer. sql/slave.cc: Post-merge fixes. Undid imported patch that's not 5.0 compatible. sql/sql_parse.cc: Post-merge fixes. Changed access API calls, and fixed merge error. sql/sql_table.cc: Post-merge fixes. No update log in 5.0.
-
unknown authored
sql/item_sum.h: fixed merge bug
-
- 22 Oct, 2003 1 commit
-
-
unknown authored
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union BitKeeper/deleted/.del-compile-netware-src~1: Delete: netware/BUILD/compile-netware-src BitKeeper/deleted/.del-knetware.imp~1: Delete: netware/BUILD/knetware.imp client/mysql.cc: Auto merged configure.in: Auto merged include/my_global.h: Auto merged include/mysql_com.h: Auto merged libmysql/libmysql.c: Auto merged libmysqld/Makefile.am: Auto merged libmysqld/lib_sql.cc: Auto merged myisam/mi_check.c: Auto merged myisam/myisamchk.c: Auto merged myisam/myisamdef.h: Auto merged mysql-test/r/distinct.result: Auto merged mysql-test/r/subselect.result: Auto merged mysql-test/r/variables.result: Auto merged mysql-test/t/subselect.test: Auto merged mysql-test/t/variables.test: Auto merged scripts/mysql_create_system_tables.sh: Auto merged scripts/mysql_install_db.sh: Auto merged sql/ha_berkeley.cc: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_myisam.cc: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_create.cc: Auto merged sql/item_subselect.cc: Auto merged sql/item_sum.cc: Auto merged sql/lock.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/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.h: Auto merged sql/sql_db.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_derived.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_load.cc: Auto merged sql/sql_repl.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_union.cc: Auto merged sql/sql_update.cc: Auto merged sql/sql_yacc.yy: Auto merged
-
- 21 Oct, 2003 4 commits
-
-
unknown authored
Need a sp_cache_remove() function with implicit name lookup to make the WL task to work. It's a cleaner and more convenient interface anyway... sql/sp.cc: Modified sp_cache_remove() function calls; just remove by name. sql/sp_cache.cc: Modified sp_cache_remove() function. Get name and lookup/remove, return the removed entry, if any. sql/sp_cache.h: Modified sp_cache_remove() function. Get name and lookup/remove, return the removed entry, if any.
-
unknown authored
into deer.(none):/home/hf/work/mysql-4.1.clean sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged
-
unknown authored
libmysqld/lib_sql.cc: This code seems to be superfluous sql/derror.cc: in embedded server these functions should return the sign of the error instead of halting the program sql/init.cc: my_abort_hook left unchanged sql/mysql_priv.h: declaration of init_errmessage changed unireg_abort was replaced with DBUG_RETURN for embedded server sql/mysqld.cc: these functions don't work in embedded server thus #ifdef-ed
-
unknown authored
New sp_cache C API. When an SP is dropped, old caches (in other threads) become invalid and are cleared. Also, the caches in THD are only created on demand. Docs/sp-imp-spec.txt: Brough the SP cache docs up-to-date. sql/mysqld.cc: Initialize SP cache. sql/sp.cc: New C API for SP cache. sql/sp_cache.cc: New C API for sp_cache. The class sp_cache is still used, but not directly. The C functions makes takes care of updating caches when SPs are dropped. (This is done in the simplest possible way, by simply detecting drops and then clear all old caches.) The API is also designed so that the sp_cache is created on demand. sql/sp_cache.h: New C API for sp_cache. The class sp_cache is still used, but not directly. The C functions makes takes care of updating caches when SPs are dropped. The API is also designed so that the sp_cache is created on demand. sql/sql_class.cc: The new sp_cache API creates the caches on demand, to avoid allocating it when it's not needed.
-
- 20 Oct, 2003 7 commits
-
-
unknown authored
into sanja.is.com.ua:/home/bell/mysql/bk/work-count-4.1 sql/item.cc: Auto merged
-
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.
-
unknown authored
Description: When a table contains a 'float' field, and one of the functions MAX, MIN, or AVG is used on that field, the system crashes.
-
unknown authored
into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1 sql/item.cc: Auto merged
-
unknown authored
http://bugs.mysql.com/bug.php?id=1022 Description: When a table contains a 'float' field, and one of the functions MAX, MIN, or AVG is used on that field, the system crashes.
-
unknown authored
sql/field.cc: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/lex.h: Auto merged sql/protocol.cc: Auto merged sql/set_var.cc: Auto merged sql/set_var.h: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_yacc.yy: Auto merged
-
unknown authored
-
- 19 Oct, 2003 2 commits
-
-
unknown authored
scripts/fill_help_tables.sh: made more fine error message
-
unknown authored
- correct table name shown in EXPLAIN Iindex reference) - pointer on freed memmory (reallocation of table name in reusing table entry) can't be used in EXPLAIN (BUG#1584) mysql-test/r/derived.result: test moved to derived table tests added test of BUG#1584 mysql-test/r/subselect.result: test moved to derived table tests mysql-test/t/derived.test: test moved to derived table tests added test of BUG#1584 mysql-test/t/subselect.test: test moved to derived table tests sql/item.cc: layout fix sql/sql_select.cc: correct table name assigned to temporary table field
-
- 17 Oct, 2003 3 commits
-
-
unknown authored
Reduce InnoDB memory allocation if buffer pool < 8 MB innobase/include/os0thread.h: Reduce InnoDB memory allocation if buffer pool < 8 MB innobase/include/srv0srv.h: Reduce InnoDB memory allocation if buffer pool < 8 MB innobase/srv/srv0srv.c: Reduce InnoDB memory allocation if buffer pool < 8 MB innobase/srv/srv0start.c: Reduce InnoDB memory allocation if buffer pool < 8 MB innobase/thr/thr0loc.c: Reduce InnoDB memory allocation if buffer pool < 8 MB
-
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.
-
unknown authored
mysql-test/r/subselect.result: fixed drop table statement test for BUG#1536 mysql-test/t/subselect.test: fixed drop table statement test for BUG#1536 sql/sql_derived.cc: all tree of derived table should be deleted sql/sql_lex.cc: delete subtree method sql/sql_lex.h: delete subtree method
-
- 16 Oct, 2003 6 commits
-
-
unknown authored
patch) (BUG#1440: Redundant class name confusing hpux compiler)
-
unknown authored
removed unnesessary code from create.test include/sql_state.h: added sqlstate for ER_WRONG_INDEX_NAME mysql-test/r/create.result: changed sqlstate for ER_WRONG_INDEX_NAME remove unnesesary warning mysql-test/t/create.test: remove unnesessary drop table
-
unknown authored
include/mysqld_error.h: added error "Incorrect index name" mysql-test/r/create.result: added test for empty index name mysql-test/t/create.test: added test for empty index name sql/share/czech/errmsg.txt: added error "Incorrect index name" sql/share/danish/errmsg.txt: added error "Incorrect index name" sql/share/dutch/errmsg.txt: added error "Incorrect index name" sql/share/english/errmsg.txt: added error "Incorrect index name" sql/share/estonian/errmsg.txt: added error "Incorrect index name" sql/share/french/errmsg.txt: added error "Incorrect index name" sql/share/german/errmsg.txt: added error "Incorrect index name" sql/share/greek/errmsg.txt: added error "Incorrect index name" sql/share/hungarian/errmsg.txt: added error "Incorrect index name" sql/share/italian/errmsg.txt: added error "Incorrect index name" sql/share/japanese/errmsg.txt: added error "Incorrect index name" sql/share/korean/errmsg.txt: added error "Incorrect index name" sql/share/norwegian-ny/errmsg.txt: added error "Incorrect index name" sql/share/norwegian/errmsg.txt: added error "Incorrect index name" sql/share/polish/errmsg.txt: added error "Incorrect index name" sql/share/portuguese/errmsg.txt: added error "Incorrect index name" sql/share/romanian/errmsg.txt: added error "Incorrect index name" sql/share/russian/errmsg.txt: added error "Incorrect index name" sql/share/serbian/errmsg.txt: added error "Incorrect index name" sql/share/slovak/errmsg.txt: added error "Incorrect index name" sql/share/spanish/errmsg.txt: added error "Incorrect index name" sql/share/swedish/errmsg.txt: added error "Incorrect index name" sql/share/ukrainian/errmsg.txt: added error "Incorrect index name" sql/sql_table.cc: added checking for wrong index name
-
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.
-
unknown authored
mysql-test/r/create.result: update test results
-
unknown authored
into mashka.mysql.fi:/home/my/mysql-4.1
-