Skip to content

Commit

Permalink
修复binlog2sql中使用日期过滤报错 (#1485)
Browse files Browse the repository at this point in the history
可能是因为有日期和时间中有空格,参数会报错,添加引号后执行正常
  • Loading branch information
gj19910723 authored May 2, 2022
1 parent 8b817a7 commit 586e3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/binlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def binlog2sql(request):
"start-position": start_pos,
"stop-file": end_file,
"stop-position": end_pos,
"start-datetime": start_time,
"stop-datetime": stop_time,
"start-datetime": '"'+start_time+'"',
"stop-datetime": '"'+stop_time+'"',
"databases": ' '.join(only_schemas),
"tables": ' '.join(only_tables),
"only-dml": only_dml,
Expand Down

0 comments on commit 586e3cb

Please sign in to comment.