summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 313366c7792..ef8115f8407 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -4631,7 +4631,9 @@ bool create_table_impl(THD *thd,
}
#endif /* WITH_PARTITION_STORAGE_ENGINE */
+#ifdef HAVE_READLINK
if (thd->variables.sql_mode & MODE_NO_DIR_IN_CREATE)
+#endif
{
if (create_info->data_file_name)
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,