diff options
author | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-17 15:54:01 +0200 |
---|---|---|
committer | Staale Smedseng <staale.smedseng@sun.com> | 2009-06-17 15:54:01 +0200 |
commit | 30fccdaaaeaa8ed60537ec0e2d72bb8e1527f1a2 (patch) | |
tree | b8fb3c1fb387986cd39d4dc291845cd51d2796e5 /sql/sql_trigger.cc | |
parent | 9c1e2bbcf6d319fa91264713e4efde0cedf71f42 (diff) | |
download | mariadb-git-30fccdaaaeaa8ed60537ec0e2d72bb8e1527f1a2.tar.gz |
Bug #43414 Parenthesis (and other) warnings compiling MySQL
with gcc 4.3.2
Compiling MySQL with gcc 4.3.2 and later produces a number of
warnings, many of which are new with the recent compiler
versions.
This bug will be resolved in more than one patch to limit the
size of changesets. This is the second patch, fixing more
of the warnings.
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r-- | sql/sql_trigger.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc index d2ae494d4eb..1fa8b83f300 100644 --- a/sql/sql_trigger.cc +++ b/sql/sql_trigger.cc @@ -179,7 +179,7 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create) need second part of condition below, since check_access() function also checks that db is specified. */ - if (!thd->lex->spname->m_db.length || create && !tables->db_length) + if (!thd->lex->spname->m_db.length || (create && !tables->db_length)) { my_error(ER_NO_DB_ERROR, MYF(0)); DBUG_RETURN(TRUE); |