diff options
author | Marko Mäkelä <marko.makela@oracle.com> | 2012-02-15 15:53:29 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@oracle.com> | 2012-02-15 15:53:29 +0200 |
commit | c3ef620d393353d0882d0383b392bf70ce95a65b (patch) | |
tree | 8a9e702e2f7fb6a5c8a22f48c5383ab02dfbe507 /sql/sql_show.cc | |
parent | b566d9a512a9671a423e1ff944d1e4ede2df7f7e (diff) | |
download | mariadb-git-c3ef620d393353d0882d0383b392bf70ce95a65b.tar.gz |
store_create_info(): Fix a compiler warning about unused variable.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index da77bf329b1..7645868180d 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1214,7 +1214,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet, handler *file= table->file; TABLE_SHARE *share= table->s; HA_CREATE_INFO create_info; +#ifdef WITH_PARTITION_STORAGE_ENGINE bool show_table_options= FALSE; +#endif /* WITH_PARTITION_STORAGE_ENGINE */ bool foreign_db_mode= (thd->variables.sql_mode & (MODE_POSTGRESQL | MODE_ORACLE | MODE_MSSQL | @@ -1429,7 +1431,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet, packet->append(STRING_WITH_LEN("\n)")); if (!(thd->variables.sql_mode & MODE_NO_TABLE_OPTIONS) && !foreign_db_mode) { +#ifdef WITH_PARTITION_STORAGE_ENGINE show_table_options= TRUE; +#endif /* WITH_PARTITION_STORAGE_ENGINE */ /* Get possible table space definitions and append them to the CREATE TABLE statement |