From b00c42b3df8e15b87039649aca091419bf01479e Mon Sep 17 00:00:00 2001 From: supar Date: Fri, 17 Oct 2014 12:56:44 +0400 Subject: [PATCH] Fix undefind variable fieldType --- orm/cmd_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index 64f3f7c6..3570949e 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -257,7 +257,7 @@ func getColumnDefault(fi *fieldInfo) string { t = " DEFAULT '%s' " // These defaults will be useful if there no config value orm:"default" and NOT NULL is on - switch fieldType { + switch fi.fieldType { case TypeDateField: d = "0000-00-00"