summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2004-11-23 19:19:09 +0100
committerunknown <pem@mysql.comhem.se>2004-11-23 19:19:09 +0100
commitebf164b88e459db3514f41b813862d8b6e832040 (patch)
tree92515c3b202bb89d028122870cfbe6c65dd3d2e5 /sql/sp.cc
parent3afa86dc344d96e8bdcacf7672a846407c91efa3 (diff)
downloadmariadb-git-ebf164b88e459db3514f41b813862d8b6e832040.tar.gz
Fix compiler warnings on some systems. (Unused variables)
Fixed bug in DROP FUNCTION for UDFs. Note: It still doesn't work properly, but that bug is somewhere else. sql/sp.cc: Fix compiler warning on some systems. (Unused variable) sql/sql_parse.cc: Fix compiler warning on some systems. (Unused variable) Fixed bug in DROP FUNCTION for UDFs. Note: It still doesn't work properly, but that bug is somewhere else.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 5798eedbad9..a39380d7276 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -1153,7 +1153,6 @@ sp_change_db(THD *thd, char *name, bool no_access_check)
int length, db_length;
char *dbname=my_strdup((char*) name,MYF(MY_WME));
char path[FN_REFLEN];
- ulong db_access;
HA_CREATE_INFO create;
DBUG_ENTER("sp_change_db");
DBUG_PRINT("enter", ("db: %s, no_access_check: %d", name, no_access_check));
@@ -1174,6 +1173,8 @@ sp_change_db(THD *thd, char *name, bool no_access_check)
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if (! no_access_check)
{
+ ulong db_access;
+
if (test_all_bits(thd->master_access,DB_ACLS))
db_access=DB_ACLS;
else