From 3edf255e42df4fa166636ca2306305a55c1d0c34 Mon Sep 17 00:00:00 2001 From: Lonng Date: Mon, 15 Jul 2019 12:51:02 +0800 Subject: [PATCH] lightning/restore: fix ColumnPermutation calculation Signed-off-by: Lonng --- lightning/restore/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/restore/restore.go b/lightning/restore/restore.go index 25330ed2a..13e8daf14 100644 --- a/lightning/restore/restore.go +++ b/lightning/restore/restore.go @@ -1218,7 +1218,7 @@ func (t *TableRestore) initializeColumns(columns []string, ccp *ChunkCheckpoint) } else { columnMap := make(map[string]int) for i, column := range columns { - columnMap[column] = i + columnMap[strings.ToLower(column)] = i } for _, colInfo := range t.tableInfo.Core.Columns { if i, ok := columnMap[colInfo.Name.L]; ok {