summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index a81c43fc16c..8a4a6005d85 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -124,7 +124,7 @@ enum db_type ha_checktype(enum db_type database_type)
for (types= sys_table_types; types->type; types++)
{
if ((database_type == types->db_type) &&
- (SHOW_OPTION_YES == *types->value))
+ (*types->value == SHOW_OPTION_YES))
return database_type;
}