mariadb/sql
unknown 43dd29dfaa Fix bug #12812 create view calling a function works without execute right on function
Execution rigths on function was checked just before function execution,
thus it was unknown on prepare stage whether user have right to execute 
particular function.

Added access rights checking function which is called right after fixing
Item_func_sp.
This have additional effect that if user don't have rights for execution
query will fail on earlier stage and will not waste resources on optimizing
with failing on execution stage.


sql/item_func.h:
  Fix bug#12812 create view calling a function works without execute right on function
sql/item_func.cc:
  Fix bug#12812 create view calling a function works without execute right on function
  Added function Item_func_sp::check_access() which checks access rights.
  Added function Item_func_sp::fix_field() which calls check_access() after fixing.
  Item_func_sp::execute() now calls to check_access() to check access rights.
mysql-test/t/sp.test:
  Test case for bug#12812 create view calling a function works without execute right on function
mysql-test/r/sp.result:
  Test case for bug#12812 create view calling a function works without execute right on function
2005-09-20 03:05:35 +04:00
..
examples Fix for bad merge. 2005-08-30 11:04:23 -07:00
share Merge mysql.com:/home/jimw/my/mysql-5.0-11680 2005-08-24 15:54:23 -07:00
.cvsignore
add_errmsg
client_settings.h
custom_conf.h
derror.cc Remove compiler warnings and remove not used variables 2005-02-25 16:53:22 +02:00
des_key_file.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-07-19 11:05:49 -07:00
discover.cc
field.cc Fixes during review of new pushed code 2005-07-31 12:49:55 +03:00
field.h Fix for bug #12281 (Geometry: crash in trigger) 2005-08-05 20:19:51 +05:00
field_conv.cc Fix bug #11398 Bug in field_conv() results in wrong result of join with index 2005-08-16 22:13:43 +04:00
filesort.cc Fix bug #7422 "order by" doesn't work 2005-06-21 20:14:50 +04:00
frm_crypt.cc
gen_lex_hash.cc a fix (#10742: Can't compile "sql_lex.cc" on AIX 5.2). 2005-05-19 18:56:01 +05:00
gstream.cc fixes for windows 64-bit compiler warnings 2005-06-13 12:41:15 +02:00
gstream.h
ha_berkeley.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-15 18:35:48 +03:00
ha_berkeley.h Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
ha_blackhole.cc ha_blackhole.cc: 2005-08-30 02:46:03 +02: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 Merge mysql.com:/home/jimw/my/mysql-5.0-build 2005-07-22 12:36:17 -07:00
ha_federated.h A fix and a test case for Bug#10760 and complementary cleanups. 2005-07-19 22:21:12 +04:00
ha_heap.cc Implement MySQL framework to support consistent read views in 2005-07-20 20:02:36 +04: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 ha_innodb.cc: 2005-08-30 13:17:50 -05:00
ha_innodb.h Bug #11946: Review fixes. 2005-08-30 12:39:20 +03:00
ha_myisam.cc Implement MySQL framework to support consistent read views in 2005-07-20 20:02:36 +04: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 Implement MySQL framework to support consistent read views in 2005-07-20 20:02:36 +04: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 eel.(none):/home/jonas/src/mysql-5.0 2005-08-18 14:28:13 +02:00
ha_ndbcluster.h Fixed handling of NOT LIKE after Item_func::NOTLIKE_FUNC has been removed 2005-08-01 11:50:43 +02:00
handler.cc After merge fixes 2005-08-25 09:38:06 +03:00
handler.h Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-30 08:28:55 -07:00
hash_filo.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
hash_filo.h forgotten s/__GNUC__/USE_PRAGMA_INTERFACE/ causes compilation faliures 2005-05-27 14:15:08 +02:00
hostname.cc Fix shortcircuit of 127.0.0.1 -> localhost lookup on little-endian machines. (Bug #11822) 2005-07-27 13:01:48 +02:00
init.cc Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
item.cc ctype_utf8.result, ctype_utf8.test, item.cc: 2005-08-29 16:49:01 +05:00
item.h Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 2005-08-29 15:44:49 +05:00
item_buff.cc sql_select.cc: 2005-07-25 12:57:23 -07:00
item_cmpfunc.cc Cleanup during review of new pushed code 2005-08-22 01:13:37 +03:00
item_cmpfunc.h Fix bug #12489 wrongly printed strcmp() function results in creation of broken 2005-08-31 00:54:41 +04:00
item_create.cc Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +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 Fix bug #12812 create view calling a function works without execute right on function 2005-09-20 03:05:35 +04:00
item_func.h Fix bug #12812 create view calling a function works without execute right on function 2005-09-20 03:05:35 +04:00
item_geofunc.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
item_geofunc.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
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 Fixes during review of new pushed code 2005-08-20 11:00:00 +03:00
item_strfunc.h Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2005-07-16 00:17:05 +03:00
item_subselect.cc item_subselect.cc: 2005-08-13 11:15:17 +03:00
item_subselect.h Clumsy but working fix for bug #11973 "SELECT .. INTO var_name; in trigger 2005-08-10 00:23:56 +04:00
item_sum.cc Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
item_sum.h merge 2005-07-05 11:21:47 +03:00
item_timefunc.cc Make SYSDATE() behave as in Oracle: always the current datetime, not the 2005-08-24 15:50:58 -07:00
item_timefunc.h Make SYSDATE() behave as in Oracle: always the current datetime, not the 2005-08-24 15:50:58 -07: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 Fixes while reviewing new code 2005-05-06 11:39:30 +03:00
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 Cleanups during review of new code 2005-08-11 15:58:15 +03:00
log.cc Slightly amended Monty's SP replication code cleanup patch 2005-08-27 02:33:06 +04:00
log_event.cc BUG#12532: Fix for the case when my_malloc is macro 2005-08-24 11:14:41 +02:00
log_event.h Merge mysql.com:/home/emurphy/src/bk-clean/mysql-4.1 2005-08-19 15:29:30 -04:00
Makefile.am Include the new header file in an appropriate macro. 2005-08-25 21:41:50 +02:00
matherr.c
mf_iocache.cc
my_decimal.cc Trimmed fix for bug #9546 (Crashing with huge decimals) 2005-05-06 19:04:58 +05:00
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 #11946: Review fixes. 2005-08-30 12:39:20 +03:00
mysqld.cc mysqld.cc: 2005-08-30 13:16:40 -05:00
mysqld_suffix.h
net_serv.cc Merge mysql.com:/home/bkroot/mysql-4.1 2005-07-13 02:13:04 +02:00
nt_servc.cc
nt_servc.h cleaned up mysql installation code for windows. 2005-02-09 22:02:48 +02:00
opt_range.cc Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-30 14:15:05 +04:00
opt_range.h Merge with 4.1 2005-06-07 00:31:53 +03:00
opt_sum.cc Fixed wrong key length when using MIN() optimization (non fatal, but caused InnoDB to write warnings to the log file) 2005-06-06 14:03:33 +03:00
parse_file.cc store/restore sql_mode which was in force during ctrigger creation (BUG#5891) 2005-07-28 22:39:11 +03:00
parse_file.h store/restore sql_mode which was in force during ctrigger creation (BUG#5891) 2005-07-28 22:39:11 +03:00
password.c fixes for windows 64-bit compiler warnings 2005-06-13 12:41:15 +02:00
procedure.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
procedure.h Merge neptunus.(none):/home/msvensson/mysql/bug10241 2005-05-09 11:26:48 +02:00
protocol.cc A fix and a test case for Bug#10794 "mysql_stmt_attr_set no 2005-06-30 16:17:10 +04:00
protocol.h A fix and a test case for Bug#10794 "mysql_stmt_attr_set no 2005-06-30 16:17:10 +04:00
protocol_cursor.cc fix for bug#8692 2005-07-22 08:11:23 +02:00
records.cc Moved some old test and added a new test to only be run with mysql-test-run --big 2005-04-07 19:24:14 +03:00
repl_failsafe.cc Merge of 4.1->5.0. This contained the fixes for GCC 4.0 2005-06-01 21:56:30 -07:00
repl_failsafe.h
set_var.cc Merge mysql.com:/usr/home/ram/work/4.1.b9613 2005-08-31 10:25:00 +05:00
set_var.h store/restore sql_mode which was in force during ctrigger creation (BUG#5891) 2005-07-28 22:39:11 +03:00
slave.cc Merge xiphis.org:/usr/home/antony/work2/mysql-4.1 2005-08-11 12:18:53 +01:00
slave.h updates for BUG#10780 - fixed slave I/O thread running status to No while attempting 2005-07-29 21:00:28 -06:00
sp.cc retest the fix for bug #10362 (SHOW PROCEDURE always qualifies name with database) 2005-08-27 12:29:36 +02:00
sp.h Avoid spurious error when restoring INFORMATION_SCHEMA as the current 2005-08-11 17:04:16 -07:00
sp_cache.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-11 16:43:22 +03: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 Fix for valgrind warning: Check for thd->binlog_evt_union.unioned_events only if 2005-08-28 20:25:53 +04:00
sp_head.h Merge deer.(none):/home/hf/work/mysql-5.0.10499 2005-08-27 18:13:26 +05:00
sp_pcontext.cc sp_rcontext.cc, sp_pcontext.cc, sp_head.cc, sp_cache.cc, ha_federated.cc: 2005-06-05 16:20:22 +02:00
sp_pcontext.h Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
sp_rcontext.cc Fix for Bug#11247 Stored procedures: Function calls in long loops leak memory 2005-08-18 11:23:54 +02:00
sp_rcontext.h Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
spatial.cc Merge mdk10.(none):/home/reggie/bk/mysql-4.1 2005-05-19 15:50:44 -05:00
spatial.h Fix warnings from icc 2005-05-18 19:00:21 +03:00
sql_acl.cc After merge fixes 2005-08-25 09:38:06 +03:00
sql_acl.h added processing of view grants to table grants (BUG#9795) 2005-07-05 13:36:36 +03:00
sql_analyse.cc Merge with 4.1 2005-06-07 00:31:53 +03:00
sql_analyse.h Merge from 4.1 2005-05-26 21:01:55 +02:00
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 Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-25 00:22:59 +03: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 BUG#12532: Added more memory in malloc for slave query cache 2005-08-19 16:25:55 +02:00
sql_cache.h merge 2005-02-07 21:39:37 +02:00
sql_class.cc Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-27 02:34:05 +04:00
sql_class.h Slightly amended Monty's SP replication code cleanup patch 2005-08-27 02:33:06 +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 Add ifdefs to control when "#pragma implementation" should be used 2005-05-26 12:09:14 +02:00
sql_db.cc after merge fix 2005-08-26 15:28:08 +04:00
sql_delete.cc Merge mysql.com:/home/mydev/mysql-5.0 2005-08-30 12:35:37 +02:00
sql_derived.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2005-08-15 18:35:48 +03:00
sql_do.cc Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
sql_error.cc merge 2005-07-05 11:38:05 +03: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 #10055 "Using stored function with information_schema causes empty 2005-08-08 17:46:06 +04:00
sql_help.cc Cleanups and optimization during review of new code 2005-08-18 03:12:42 +03:00
sql_insert.cc Slightly amended Monty's SP replication code cleanup patch 2005-08-27 02:33:06 +04:00
sql_lex.cc Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
sql_lex.h Fix for BUG#12335 (SP replication) : New binlogging strategy for stored PROCEDUREs/FUNCTIONs. 2005-08-25 17:34:34 +04:00
sql_list.cc a compiler must see '#pragma implementation' *before* 2005-06-05 19:38:52 +02:00
sql_list.h Add a comment about I_List<> copy constructor. 2005-08-22 19:23:01 +04:00
sql_load.cc Implementation of WL#2486 - 2005-08-12 17:57:19 +03:00
sql_manager.cc
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 Merge mysql.com:/home/mydev/mysql-5.0 2005-08-30 12:35:37 +02:00
sql_prepare.cc Merge mysql.com:/home/emurphy/src/bk-clean/mysql-4.1 2005-08-19 15:29:30 -04:00
sql_rename.cc Bug#6877 MySQL should give an error if the requested table type is not available 2005-06-17 22:14:44 +01:00
sql_repl.cc Merge mysql.com:/home/kostja/mysql/mysql-4.1-root 2005-07-19 00:55:37 +04:00
sql_repl.h WL#874 "Extended LOAD DATA". 2005-03-16 04:32:47 +03:00
sql_select.cc fix for bug #11904 (select statement, cursor, grouping wrong results) 2005-08-26 09:45:30 +02:00
sql_select.h Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
sql_show.cc Merge bk-internal:/home/bk/mysql-5.0 2005-08-26 11:56:29 +04: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 Merge mysql.com:/home/mydev/mysql-5.0 2005-08-30 08:18:27 +02:00
sql_test.cc Merge mysql.com:/home/jimw/my/mysql-4.1-clean 2005-08-15 12:37:45 -07:00
sql_trigger.cc Save and clear run context before executing a stored function or trigger and restore it afterwards. 2005-08-15 18:15:12 +03:00
sql_trigger.h Save and clear run context before executing a stored function or trigger and restore it afterwards. 2005-08-15 18:15:12 +03:00
sql_udf.cc - backport of a compile fix from 4.1 (ChangeSet@1.2260.23.2 2005/05/19 from reggie) 2005-06-30 17:33:23 +02:00
sql_udf.h Name resolution context added (BUG#6443) 2005-07-01 07:05:42 +03:00
sql_union.cc Fixes during review of new pushed code 2005-08-12 13:54:42 +03:00
sql_update.cc Slightly amended Monty's SP replication code cleanup patch 2005-08-27 02:33:06 +04:00
sql_view.cc Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 2005-08-25 17:47:18 +03:00
sql_view.h Fix bug #11864 non unique names are allowed in subquery 2005-08-10 17:45:00 +04:00
sql_yacc.yy Merge mysql.com:/home/mydev/mysql-5.0 2005-08-29 21:11:05 +02:00
stacktrace.c Step 2 of the switch to support configuration with NPTL: 2005-04-20 20:38:57 +02:00
stacktrace.h Step 2 of the switch to support configuration with NPTL: 2005-04-20 20:38:57 +02:00
strfunc.cc Remove compiler warnings and remove not used variables 2005-02-25 16:53:22 +02:00
structs.h Fix for bug#11055: information_schema: routines.sql_data_access has wrong value 2005-06-16 12:12:47 +05:00
table.cc Merge mysql.com:/home/timka/mysql/src/5.0-virgin 2005-08-23 18:15:51 +03:00
table.h merged 2005-08-26 13:24:59 +04: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 Fixes during review of new pushed code 2005-07-31 12:49:55 +03:00
tztime.h Fixes during review of new pushed code 2005-07-31 12:49:55 +03:00
udf_example.cc
uniques.cc Code cleanups during code reviews 2005-06-01 16:35:09 +03:00
unireg.cc Merge mysql.com:/home/my/mysql-4.1 2005-07-28 17:09:54 +03:00
unireg.h unireg.h: 2005-08-27 01:50:38 +02:00
watchdog_mysqld