cndarren

Results 1 comments of cndarren

针对单表同步时,需要在配置文件中指定目标表的主键targetPk,操作方法参看wiki ![image](https://user-images.githubusercontent.com/52493242/216927173-b11f2ddc-9b41-4b44-abf5-19d5adbd10d8.png) 错误原因:在1.1.5的源码中针对更新操作,RdbSyncService类的拼接主键方法appendCondition,由于未设置targetPk值,导致for循环直接跳过,通过执行sql.delete(len - 4, len);方法,对WHERE字段进行了截取,成为了WH,导致目标库执行SQL语句时报错 ![image](https://user-images.githubusercontent.com/52493242/216926803-100d4df6-6e59-4329-bd73-79684f1a298a.png) ![image](https://user-images.githubusercontent.com/52493242/216927272-ffd537f1-ddf8-4663-a7ee-3465824cd623.png) ![image](https://user-images.githubusercontent.com/52493242/216927298-04355d8f-59fe-4c6b-95e4-db7e2beab05f.png)