From 2f94cb2466aeb73debb810e7f87d883221b1d450 Mon Sep 17 00:00:00 2001 From: Hiroya Fujinami Date: Tue, 19 Sep 2023 20:04:00 +0900 Subject: [PATCH] Fix to add missing `{{if ` in doc (#74) --- ast/ast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ast/ast.go b/ast/ast.go index 2ac1148e..925995fe 100644 --- a/ast/ast.go +++ b/ast/ast.go @@ -1602,7 +1602,7 @@ type AlterTable struct { // AddColumn is ADD COLUMN clause in ALTER TABLE. // -// ADD COLUMN {{.IfNotExists}}IF NOT EXISTS{{end}} {{.Column | sql}} +// ADD COLUMN {{if .IfNotExists}}IF NOT EXISTS{{end}} {{.Column | sql}} type AddColumn struct { // pos = Add // end = Column.end @@ -1793,7 +1793,7 @@ type InterleaveIn struct { // DropIndex is DROP INDEX statement node. // -// DROP INDEX {{.IfExists}}IF EXISTS{{end}} {{.Name | sql}} +// DROP INDEX {{if .IfExists}}IF EXISTS{{end}} {{.Name | sql}} type DropIndex struct { // pos = Drop // end = Name.end