mariadb/sql
unknown 9349f18b44 Fixed BUG#14233: Crash after tampering with the mysql.proc table
Added error checking for errors when attempting to use stored procedures
  after the mysql.proc table has been dropped, corrupted, or tampered with.
  Test cases were put in a separate file (sp-destruct.test).


mysql-test/t/sp.test:
  Added comment.
sql/share/errmsg.txt:
  New error message for corrupted mysql.proc table.
sql/sp.cc:
  Check and return error code when caching stored routines.
  In the case when no error message has been set, set one.
sql/sp.h:
  Return error code from stored routine cache function.
sql/sql_base.cc:
  Check for error from sp_cache_routines_* calls.
sql/sql_trigger.h:
  Updated friend declaration for sp_cache_routines*.
mysql-test/r/sp-destruct.result:
  New test file for destruction of the mysql.proc table.
mysql-test/t/sp-destruct.test:
  New result file for destruction of the mysql.proc table.
2005-10-26 15:34:57 +02:00
..
examples Final patch for 5.0 for simplifying storage engine code. We now have just one set of ifdefs. I may also remove the code for creating new handlers. 2005-10-03 18:42:30 -07:00
share Fixed BUG#14233: Crash after tampering with the mysql.proc table 2005-10-26 15:34:57 +02:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc
des_key_file.cc Many files: 2005-09-30 14:03:55 +02:00
discover.cc
field.cc Move handling of suffix_length from strnxfrm_bin() to filesort to ensure proper sorting of all kind of binary objects 2005-10-14 00:04:52 +03:00
field.h Move handling of suffix_length from strnxfrm_bin() to filesort to ensure proper sorting of all kind of binary objects 2005-10-14 00:04:52 +03:00
field_conv.cc a fix (bug #7589: Decimal types are ignored when updating data from another column). 2005-09-21 14:32:19 +05:00
filesort.cc Move handling of suffix_length from strnxfrm_bin() to filesort to ensure proper sorting of all kind of binary objects 2005-10-14 00:04:52 +03:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc fixes for windows 64-bit compiler warnings 2005-06-13 12:41:15 +02:00
gstream.h
ha_archive.cc Per a user request there is now support for "CHECK TABLE" where the table is an archive file. 2005-10-18 14:52:38 -07:00
ha_archive.h Per a user request there is now support for "CHECK TABLE" where the table is an archive file. 2005-10-18 14:52:38 -07:00
ha_berkeley.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-03 21:09:01 -07:00
ha_berkeley.h Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-03 21:09:01 -07:00
ha_blackhole.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-02 20:13:18 -07:00
ha_blackhole.h Merge a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-4.1 2005-08-26 15:56:52 +03:00
ha_federated.cc Re-application of earlier patch for create_where_from_key and and delete_all_rows 2005-10-18 15:54:50 -07:00
ha_federated.h Improvement to federated for BUG#12659 2005-09-13 23:31:17 -07:00
ha_heap.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-02 20:13:18 -07:00
ha_heap.h Always report row type of 'Fixed' for MEMORY tables. (Bug #3094) 2005-08-05 13:19:48 -07:00
ha_innodb.cc BUG#11704: Make InnoDB not to convert TL_WRITE_ONLY locks to TL_WRITE_ALLOW_WRITE in 2005-10-25 00:27:15 +04:00
ha_innodb.h Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-03 21:09:01 -07:00
ha_myisam.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-02 20:13:18 -07:00
ha_myisam.h A fix and a test case for Bug#10760 and complementary cleanups. 2005-07-19 22:21:12 +04:00
ha_myisammrg.cc Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-02 20:13:18 -07:00
ha_myisammrg.h A fix and a test case for Bug#10760 and complementary cleanups. 2005-07-19 22:21:12 +04:00
ha_ndbcluster.cc Merge mysql.com:/usr/local/home/marty/MySQL/mysql-4.1 2005-10-14 11:28:01 +02:00
ha_ndbcluster.h Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-03 21:09:01 -07:00
handler.cc Fixes during review of new pushed code 2005-10-13 19:40:46 +03:00
handler.h Store and read engine type string in extra block of .frm. 2005-10-10 23:01:45 +05:00
hash_filo.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
hash_filo.h
hostname.cc Backport of JimW's localhost patch to 4.1 tree. 2005-09-02 17:07:05 -07:00
init.cc Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
item.cc Bug#12371: executing prepared statement fails (illegal mix of collations) 2005-10-20 11:56:27 +05:00
item.h Bug#12371: executing prepared statement fails (illegal mix of collations) 2005-10-20 11:56:27 +05:00
item_buff.cc sql_select.cc: 2005-07-25 12:57:23 -07:00
item_cmpfunc.cc fix for bug #12595 (ESCAPE must be exactly 1 character long) 2005-10-21 04:01:52 +03:00
item_cmpfunc.h fix for bug #12595 (ESCAPE must be exactly 1 character long) 2005-10-21 04:01:52 +03:00
item_create.cc Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(), 2005-09-14 20:25:00 +04:00
item_create.h Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
item_func.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-10-19 13:47:05 -07:00
item_func.h Merge mysqldev@production.mysql.com:my/mysql-5.0-release 2005-09-23 00:46:59 +04:00
item_geofunc.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
item_geofunc.h
item_row.cc Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
item_row.h Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
item_strfunc.cc Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-tmp 2005-10-13 12:09:39 +02:00
item_strfunc.h ctype_utf8.result, ctype_utf8.test: 2005-10-13 19:24:47 +05:00
item_subselect.cc A fix and a test case for Bug#12736 "Server crash during a select". 2005-10-13 11:53:00 +04:00
item_subselect.h A fix and a test case for Bug#12736 "Server crash during a select". 2005-10-13 11:53:00 +04:00
item_sum.cc Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-09-30 12:36:23 +03:00
item_sum.h Merge 4.1->5.0 2005-09-09 10:54:59 +04:00
item_timefunc.cc Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(), 2005-09-14 20:25:00 +04:00
item_timefunc.h Fixed BUG#12963, BUG#13000: wrong VIEW creation with DAYNAME(), 2005-09-14 20:25:00 +04:00
item_uniq.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
item_uniq.h Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
key.cc
lex.h Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-25 17:39:02 +04:00
lex_symbol.h
lock.cc Fix for bug #12704 "Server crashes during trigger execution". 2005-09-15 03:56:09 +04:00
log.cc Bug #13377. Small update, code formatting. 2005-10-17 19:36:20 +04:00
log_event.cc Merge mysql.com:/users/lthalmann/bkroot/mysql-5.0 2005-10-19 19:42:14 +02:00
log_event.h Merge mysql.com:/users/lthalmann/bkroot/mysql-5.0 2005-10-25 00:23:14 +02:00
Makefile.am Moving archive from example to sql. 2005-09-28 19:04:51 -07:00
matherr.c
mf_iocache.cc
my_decimal.cc
my_decimal.h Fix for bug #10896 (0.00 > -0.00) 2005-06-08 21:56:22 +05:00
my_lock.c
mysql_priv.h BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
mysqld.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-10-19 13:47:05 -07:00
mysqld_suffix.h
net_serv.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-09-12 17:00:50 -07:00
nt_servc.cc
nt_servc.h
opt_range.cc Post-merge fixes 2005-10-19 12:41:30 +04:00
opt_range.h BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
opt_sum.cc Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1 2005-09-28 11:34:53 +02:00
parse_file.cc Reviewing new pushed code 2005-10-12 00:58:22 +03:00
parse_file.h Changes after discussion/review with Sanja 2005-09-18 21:43:28 +02:00
password.c Reviewing new pushed code 2005-10-12 00:58:22 +03:00
procedure.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
procedure.h
protocol.cc Additional fix for BUG#7049, after review. 2005-10-17 15:07:47 +02:00
protocol.h A fix and a test case for Bug#6513 "Test Suite: Values inserted by using 2005-09-22 02:11:21 +04:00
records.cc BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
repl_failsafe.cc BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
repl_failsafe.h pthread_handler_decl() changed to be ctags-friendly 2005-10-08 16:39:55 +02:00
set_var.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-09-21 17:42:44 +02:00
set_var.h Fixed BUG#12712: SET AUTOCOMMIT should fail within SP/functions/triggers 2005-09-13 17:16:12 +02:00
slave.cc BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
slave.h Merge mysql.com:/home/mysql_src/mysql-4.1 2005-10-12 21:58:02 +02:00
sp.cc Fixed BUG#14233: Crash after tampering with the mysql.proc table 2005-10-26 15:34:57 +02:00
sp.h Fixed BUG#14233: Crash after tampering with the mysql.proc table 2005-10-26 15:34:57 +02:00
sp_cache.cc Fix use of "%*s" *printf() specifiers that were really meant to be 2005-10-06 17:37:24 -07:00
sp_cache.h BUG#12228: Post review fixes: Added test case, code cleanup. 2005-08-10 21:17:02 +00:00
sp_head.cc Post-review fix. 2005-10-21 13:08:00 +02:00
sp_head.h Merge mysqldev@production.mysql.com:my/mysql-5.0-release 2005-09-23 00:46:59 +04:00
sp_pcontext.cc Fixed BUG#13133: Local variables in stored procedures are not initialized correctly. 2005-09-13 12:50:21 +02:00
sp_pcontext.h Fixed BUG#13133: Local variables in stored procedures are not initialized correctly. 2005-09-13 12:50:21 +02:00
sp_rcontext.cc Fixed BUG#7049: Stored procedure CALL errors are ignored 2005-09-26 18:46:31 +02:00
sp_rcontext.h Additional fix for BUG#7049, after review. 2005-10-17 15:07:47 +02:00
spatial.cc
spatial.h
sql_acl.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-10-19 13:47:05 -07:00
sql_acl.h WL#2787 (Add view definer/owner to the view definition (.frm) to check privileges on used tables and stored routines when using a VIEW.) 2005-09-20 21:20:38 +03:00
sql_analyse.cc Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1 2005-09-13 18:23:37 +03:00
sql_analyse.h
sql_array.h Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
sql_base.cc Fixed BUG#14233: Crash after tampering with the mysql.proc table 2005-10-26 15:34:57 +02:00
sql_bitmap.h Bug#10932 - Building server with key limit of 128, makes test cases fail 2005-07-19 14:13:56 +02:00
sql_cache.cc Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-24 11:36:29 +05:00
sql_cache.h Merge sanja.is.com.ua:/home/bell/mysql/bk/work-4.1 2005-09-06 20:51:15 +03:00
sql_class.cc Fix for BUG#13037: undefined variable in IF cause erroneous error-message. 2005-10-25 13:02:48 +04:00
sql_class.h Fix for BUG#13037: undefined variable in IF cause erroneous error-message. 2005-10-25 13:02:48 +04:00
sql_client.cc
sql_crypt.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_crypt.h
sql_cursor.cc A fix and a test case for Bug#6513 "Test Suite: Values inserted by using 2005-09-22 02:11:21 +04:00
sql_cursor.h A fix and a test case for Bug#6513 "Test Suite: Values inserted by using 2005-09-22 02:11:21 +04:00
sql_db.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-09-30 16:51:35 +02:00
sql_delete.cc Post-merge fixes 2005-10-19 12:41:30 +04:00
sql_derived.cc A fix and a test case for Bug#6513 "Test Suite: Values inserted by using 2005-09-22 02:11:21 +04:00
sql_do.cc Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
sql_error.cc Additional fix for BUG#7049, after review. 2005-10-17 15:07:47 +02:00
sql_error.h Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902) 2005-04-01 15:04:50 +03:00
sql_handler.cc Fix for bug #12704 "Server crashes during trigger execution". 2005-09-15 03:56:09 +04:00
sql_help.cc fix for bug #12595 (ESCAPE must be exactly 1 character long) 2005-10-21 04:01:52 +03:00
sql_insert.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-12 00:59:52 +03:00
sql_lex.cc fix for bug #12595 (ESCAPE must be exactly 1 character long) 2005-10-21 04:01:52 +03:00
sql_lex.h Fix for BUG#13095: Cannot create VIEWs in prepared statements 2005-10-25 00:54:04 +04:00
sql_list.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_list.h A fix and a test case for Bug#6513 "Test Suite: Values inserted by using 2005-09-22 02:11:21 +04:00
sql_load.cc Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1 2005-09-28 11:34:53 +02:00
sql_manager.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-12 00:59:52 +03:00
sql_manager.h
sql_map.cc WL#2286 - Compile MySQL w/YASSL support 2005-06-22 14:08:28 +05:00
sql_map.h Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
sql_olap.cc Implementation of WL#2486 - 2005-08-12 17:57:19 +03:00
sql_parse.cc fix for bug#14089 FROM list subquery always fails when 2005-10-21 13:14:54 +05:00
sql_prepare.cc Fix for BUG#13095: Cannot create VIEWs in prepared statements 2005-10-25 00:54:04 +04:00
sql_rename.cc Changes after discussion/review with Sanja 2005-09-18 21:43:28 +02:00
sql_repl.cc Fixes bug #13377. Added code to close active log files in case 2005-10-03 20:34:42 +04:00
sql_repl.h WL#874 "Extended LOAD DATA". 2005-03-16 04:32:47 +03:00
sql_select.cc Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-24 11:36:29 +05:00
sql_select.h A fix and a test case for Bug#12736 "Server crash during a select". 2005-10-13 11:53:00 +04:00
sql_show.cc Fix for bug #14064: information_schema test fails on opnsrv6c. 2005-10-18 17:23:18 +05:00
sql_sort.h
sql_state.c
sql_string.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
sql_string.h Bug#8610: The ucs2_turkish_ci collation fails with upper('i') 2005-06-06 16:54:15 +05:00
sql_table.cc Fix for dropping a table with frm file consisting of "junk" 2005-10-24 15:05:06 +02:00
sql_test.cc Merge mysql.com:/home/mydev/mysql-4.1-4100 2005-09-14 13:37:16 +02:00
sql_trigger.cc Fix for bug #12739 "Deadlock in multithreaded environment during creating/ 2005-10-17 22:37:24 +04:00
sql_trigger.h Fixed BUG#14233: Crash after tampering with the mysql.proc table 2005-10-26 15:34:57 +02:00
sql_udf.cc Added option --valgrind-mysqltest to mysql-test-run 2005-09-14 01:41:44 +03:00
sql_udf.h Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
sql_union.cc A fix and a test case for Bug#12736 "Server crash during a select". 2005-10-13 11:53:00 +04:00
sql_update.cc BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
sql_view.cc Fix for BUG#13095: Cannot create VIEWs in prepared statements 2005-10-25 00:54:04 +04:00
sql_view.h Fix for bug#5508 after Sanja's review 2005-09-16 17:13:21 +02:00
sql_yacc.yy Merge mysql.com:/home/timka/mysql/src/5.0-virgin 2005-10-25 09:01:47 +03:00
stacktrace.c
stacktrace.h
strfunc.cc
structs.h BUG#121915: Merge 4.1->5.0 2005-10-19 01:52:06 +04:00
table.cc Fixes during review of new pushed code 2005-10-13 19:40:46 +03:00
table.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-10-08 03:37:23 +03:00
thr_malloc.cc
time.cc Fixes during review of new pushed code 2005-07-31 12:49:55 +03:00
tzfile.h
tztime.cc Added option --valgrind-mysqltest to mysql-test-run 2005-09-14 01:41:44 +03:00
tztime.h Fixes during review of new pushed code 2005-07-31 12:49:55 +03:00
udf_example.cc
uniques.cc
unireg.cc Fixes during review of new pushed code 2005-10-13 19:40:46 +03:00
unireg.h unireg.h: 2005-08-27 01:50:38 +02:00
watchdog_mysqld