Merge branch 'master' into v2

This commit is contained in:
Jinzhu 2013-11-16 07:34:17 +08:00
commit c9d5667ff0
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func (s *sqlite3) SqlTag(column interface{}, size int) string {
return "bigint"
case float32, float64, sql.NullFloat64:
return "real"
case []byte:
return "blob"
case string, sql.NullString:
if size > 0 && size < 65532 {
return fmt.Sprintf("varchar(%d)", size)