From b25ce6d059f8aaa3cf3aa3e9040edd68ca80d482 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 21 Nov 2016 18:52:12 +0000 Subject: [PATCH] =?UTF-8?q?If=20no=20TYPE=20is=20found=20on=20SQL=20DEFINE?= =?UTF-8?q?=20FIELD=20default=20to=20=E2=80=9Cany=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/field.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/field.go b/sql/field.go index 730b2fc0..932cea13 100644 --- a/sql/field.go +++ b/sql/field.go @@ -122,7 +122,7 @@ func (p *parser) parseDefineFieldStatement() (stmt *DefineFieldStatement, err er } if stmt.Type == "" { - return nil, &ParseError{Found: "", Expected: []string{"TYPE"}} + stmt.Type = "any" } if _, _, err = p.shouldBe(EOF, SEMICOLON); err != nil {