From 107643dba8b33fe2e14bddd5e3d666cfc82844dc Mon Sep 17 00:00:00 2001 From: He Wang Date: Fri, 7 Jul 2023 10:36:44 +0800 Subject: [PATCH] Support to use OceanBase like MySQL as metadata database (#13662) * modify the order of creating tables * use temp variable to set 'sql_mode' * Revert "modify the order of creating tables" This reverts commit 6f3534e92824ac0c94cbef8f79a4d8cd8e17142a. --- .../src/main/resources/sql/dolphinscheduler_mysql.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql index f516d87215..8dc5477975 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql @@ -1039,7 +1039,8 @@ VALUES ('1', 'admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', -- ---------------------------- -- Table structure for t_ds_plugin_define -- ---------------------------- -SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); +SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','') into @new_sql_mode; +SET sql_mode=@new_sql_mode; DROP TABLE IF EXISTS `t_ds_plugin_define`; CREATE TABLE `t_ds_plugin_define` ( `id` int NOT NULL AUTO_INCREMENT,