Access to mysql.proc table before calling stored proc
Posted: Wed 26 Sep 2007 07:54
I found strange behavior before calling my stored proc - mydac executes following sql statement :
SELECT type, returns, param_list FROM mysql.proc WHERE (name = 'select_data') AND (LOWER(db) = 'gmng'.
And i *must* grant the select privilege to user on mysql.proc table which is actually not *really* required to him (only execution of SP privilige is needed). IMHO this way is not really the right one. Could you please explain such behavior of mydac ? (MySql query browser works ok even only one execution privilege on selected db granted to user).
SELECT type, returns, param_list FROM mysql.proc WHERE (name = 'select_data') AND (LOWER(db) = 'gmng'.
And i *must* grant the select privilege to user on mysql.proc table which is actually not *really* required to him (only execution of SP privilige is needed). IMHO this way is not really the right one. Could you please explain such behavior of mydac ? (MySql query browser works ok even only one execution privilege on selected db granted to user).