Skip to content

Commit

Permalink
[fix] The special library name table name problem (apache#13519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toms1999 authored Oct 21, 2022
1 parent 038ccab commit 6ff6a4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/mysql_to_doris/bin/e_mysql_to_doris.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ rm -f $path
#get create table sql for mysql
for table in $(cat ../conf/mysql_tables |grep -v '#' | awk -F '\n' '{print $1}')
do
echo "show create table ${table};" |mysql -h$mysql_host -uroot -p$mysql_password >> $path
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

#adjust sql
Expand Down

0 comments on commit 6ff6a4f

Please sign in to comment.