fix(sql): Add boolstr to all dialects

closes #6116
This commit is contained in:
bergquist
2016-09-23 08:07:14 +02:00
parent 521b5cf014
commit e5c64732f1
7 changed files with 20 additions and 3 deletions

View File

@ -36,6 +36,10 @@ func (db *Postgres) AutoIncrStr() string {
return ""
}
func (db *Postgres) BooleanStr(value bool) string {
return strconv.FormatBool(value)
}
func (b *Postgres) Default(col *Column) string {
if col.Type == DB_Bool {
if col.Default == "0" {