summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-01-28 19:51:40 -0200
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-01-28 19:51:40 -0200
commitc3a73a8f6d674de1e9efcb498f3343db802d6a6c (patch)
tree0983a14bd3f5e154dd9ef33de7eb71f9b90ce8b7 /sql/sql_db.cc
parent1750b79fd15e0ebc95a29123c18053fb7154ea3c (diff)
downloadmariadb-git-c3a73a8f6d674de1e9efcb498f3343db802d6a6c.tar.gz
Fix for compiler warnings:
Rename method as to not hide a base. Reorder attributes initialization. Remove unused variable. Rework code to silence a warning due to assignment used as truth value. sql/item_strfunc.cc: Rename method as to not hide a base. sql/item_strfunc.h: Rename method as to not hide a base. sql/log_event.cc: Reorder attributes initialization. sql/rpl_injector.cc: Rework code to silence a warning due to assignment used as truth value. sql/rpl_record.cc: Remove unused variable. sql/sql_db.cc: Rework code to silence a warning due to assignment used as truth value. sql/sql_parse.cc: Rework code to silence a warning due to assignment used as truth value. sql/sql_table.cc: Rework code to silence a warning due to assignment used as truth value.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index d5d9830f63d..0e65f97e10b 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -828,7 +828,7 @@ bool mysql_alter_db(THD *thd, const char *db, HA_CREATE_INFO *create_info)
qinfo.db_len = strlen(db);
/* These DDL methods and logging protected with LOCK_mysql_create_db */
- if (error= mysql_bin_log.write(&qinfo))
+ if ((error= mysql_bin_log.write(&qinfo)))
goto exit;
}
my_ok(thd, result);