This is an automated email from the ASF dual-hosted git repository.

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 107643dba8 Support to use OceanBase like MySQL as metadata database 
(#13662)
107643dba8 is described below

commit 107643dba8b33fe2e14bddd5e3d666cfc82844dc
Author: He Wang <[email protected]>
AuthorDate: Fri Jul 7 10:36:44 2023 +0800

    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.
---
 dolphinscheduler-dao/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', '[email protected]', '',
 -- ----------------------------
 -- 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,

Reply via email to