This commit is contained in:
Back Yu
2017-11-30 18:12:49 +08:00
parent c3a81a23f9
commit b30969704a
10 changed files with 22 additions and 13 deletions

View File

@@ -23,6 +23,7 @@ import (
// Define the Type enum
const (
TypeBooleanField = 1 << iota
TypeVarCharField
TypeCharField
TypeTextField
TypeTimeField
@@ -126,7 +127,7 @@ func (e *CharField) String() string {
// FieldType return the enum type
func (e *CharField) FieldType() int {
return TypeCharField
return TypeVarCharField
}
// SetRaw set the interface to string