This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f5761c658f [Fix]Fix the extension mysql_to_doris bug (#13723)
f5761c658f is described below
commit f5761c658f3ca10a3817859b40a45dab359b8aba
Author: TsubameKoyasu <[email protected]>
AuthorDate: Mon Oct 31 08:45:34 2022 +0800
[Fix]Fix the extension mysql_to_doris bug (#13723)
* Fix the extension mysql_to_doris BUG
e_mysql_to_doris.sh: command error,This error causes script execution
errors. :ERROR 1103 (42000) at line 1: Incorrect table name ''.
` ` symbol position error
* Update extension/mysql_to_doris/bin/e_mysql_to_doris.sh
Co-authored-by: Adonis Ling <[email protected]>
---
extension/mysql_to_doris/bin/e_mysql_to_doris.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension/mysql_to_doris/bin/e_mysql_to_doris.sh
b/extension/mysql_to_doris/bin/e_mysql_to_doris.sh
index 0607bff932..823a32ea41 100644
--- a/extension/mysql_to_doris/bin/e_mysql_to_doris.sh
+++ b/extension/mysql_to_doris/bin/e_mysql_to_doris.sh
@@ -31,8 +31,8 @@ rm -f $path
#get create table sql for mysql
for table in $(cat ../conf/mysql_tables |grep -v '#' | awk -F '\n' '{print
$1}')
do
- d_d=`echo $table` |awk -F '.' '{print $1}'
- d_t=`echo $table` |awk -F '.' '{print $2}'
+ d_d=$(echo $table |awk -F '.' '{print $1}')
+ d_t=$(echo $table |awk -F '.' '{print $2}')
echo "show create table \`$d_d\`.\`$d_t\`;" |mysql -h$mysql_host
-uroot -p$mysql_password >> $path
done
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]