From eafb5b5f09765aa1c5b4edf34dd41c13aa7e5d01 Mon Sep 17 00:00:00 2001 From: bf0 Date: Thu, 23 Dec 2021 14:19:15 +0800 Subject: [PATCH] forbidden mysql temp table in opensource --- src/sql/resolver/ddl/ob_create_table_resolver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sql/resolver/ddl/ob_create_table_resolver.cpp b/src/sql/resolver/ddl/ob_create_table_resolver.cpp index e5c16bdd6f..d035e78e4c 100644 --- a/src/sql/resolver/ddl/ob_create_table_resolver.cpp +++ b/src/sql/resolver/ddl/ob_create_table_resolver.cpp @@ -460,6 +460,9 @@ int ObCreateTableResolver::resolve(const ParseNode& parse_tree) } else if (is_create_as_sel && is_mysql_mode) { ret = OB_NOT_SUPPORTED; LOG_USER_ERROR(OB_NOT_SUPPORTED, "View/Table's column refers to a temporary table"); + } else if (is_mysql_mode) { + ret = OB_NOT_SUPPORTED; + LOG_USER_ERROR(OB_NOT_SUPPORTED, "mysql temporary table"); } else { is_temporary_table = true; is_oracle_temp_table_ = (is_mysql_mode == false); -- GitLab