fix(sql): Add boolstr to all dialects

closes #6116
This commit is contained in:
bergquist
2016-09-23 09:36:15 +02:00
parent 521b5cf014
commit e5c64732f1
7 changed files with 20 additions and 3 deletions
@@ -29,6 +29,13 @@ func (db *Sqlite3) AutoIncrStr() string {
return "AUTOINCREMENT"
}
func (db *Sqlite3) BooleanStr(value bool) string {
if value {
return "1"
}
return "0"
}
func (db *Sqlite3) SqlType(c *Column) string {
switch c.Type {
case DB_Date, DB_DateTime, DB_TimeStamp, DB_Time: