You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -329,7 +346,7 @@ func (w *Writer) generateBatchSQLInUnSafeMode(events []*commonEvent.DMLEvent) ([
329
346
rowKey:=rowLists[i].RowKeys
330
347
ifnextRowType==common.RowTypeInsert {
331
348
ifcompareKeys(rowKey, rowLists[j].RowKeys) {
332
-
sql, values:=w.generateNormalSQLs(events)
349
+
sql, values:=w.generateBatchSQLsPerEvent(events)
333
350
log.Info("normal sql should be", zap.Any("sql", sql), zap.Any("values", values), zap.Int("writerID", w.id))
334
351
log.Panic("Here are two invalid rows with the same row type and keys", zap.Any("Events", events), zap.Any("i", i), zap.Any("j", j), zap.Int("writerID", w.id))
335
352
}
@@ -368,7 +385,7 @@ func (w *Writer) generateBatchSQLInUnSafeMode(events []*commonEvent.DMLEvent) ([
368
385
}
369
386
ifnextRowType==common.RowTypeInsert {
370
387
ifcompareKeys(rowKey, rowLists[j].RowKeys) {
371
-
sql, values:=w.generateNormalSQLs(events)
388
+
sql, values:=w.generateBatchSQLsPerEvent(events)
372
389
log.Info("normal sql should be", zap.Any("sql", sql), zap.Any("values", values), zap.Int("writerID", w.id))
373
390
log.Panic("Here are two invalid rows with the same row type and keys", zap.Any("Events", events), zap.Any("i", i), zap.Any("j", j), zap.Int("writerID", w.id))
374
391
}
@@ -454,8 +471,8 @@ func (w *Writer) generateBatchSQLInSafeMode(events []*commonEvent.DMLEvent) ([]s
0 commit comments