diff options
author | unknown <pem@mysql.comhem.se> | 2004-11-23 19:19:09 +0100 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-11-23 19:19:09 +0100 |
commit | ebf164b88e459db3514f41b813862d8b6e832040 (patch) | |
tree | 92515c3b202bb89d028122870cfbe6c65dd3d2e5 /sql/sp.cc | |
parent | 3afa86dc344d96e8bdcacf7672a846407c91efa3 (diff) | |
download | mariadb-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.cc | 3 |
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 |