This commit is contained in:
Tobie Morgan Hitchcock 2016-11-23 15:41:21 +00:00
parent 2fcc2e3668
commit bf60887dc0

View file

@ -66,7 +66,7 @@ func (this *TB) GetIX(name string) *IX {
return nil return nil
} }
func (this *TB) AdIX(ast *sql.DefineIndexStatement) { func (this *TB) AddIX(ast *sql.DefineIndexStatement) {
if ix, ok := this.IX[ast.Name]; ok { if ix, ok := this.IX[ast.Name]; ok {
ix.Name = ast.Name ix.Name = ast.Name
ix.Cols = ast.Cols ix.Cols = ast.Cols