From 4a4e6e7b29140cf04898facbcb60f3d23f185b6b Mon Sep 17 00:00:00 2001 From: Emma Etherington Date: Mon, 22 Jul 2019 14:31:28 +0000 Subject: [PATCH] Fix string array length comparision causing index out of bound panics in index.go hasPrefix() --- index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.go b/index.go index 814f9e9..f477b4d 100644 --- a/index.go +++ b/index.go @@ -75,7 +75,7 @@ func (o *IndexDef) changeColumn(originalName, newName string) { } func (o *IndexDef) hasPrefix(columns []string) bool { - if len(o.Columns) < len(columns) { + if len(o.Columns) > len(columns) { return false }