Commit 368ad5ec authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Eugene Kosov

compiler warning

sql/table.h:1531:17: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
parent c968a7eb
......@@ -1525,10 +1525,17 @@ struct TABLE
*/
bool vers_write;
bool versioned(vers_sys_type_t type= VERS_UNDEFINED) const
bool versioned() const
{
DBUG_ASSERT(s);
return type ? s->versioned == type : s->versioned;
return s->versioned;
}
bool versioned(vers_sys_type_t type) const
{
DBUG_ASSERT(s);
DBUG_ASSERT(type);
return s->versioned == type;
}
bool versioned_write(vers_sys_type_t type= VERS_UNDEFINED) const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment