Fix mssql test
This commit is contained in:
parent
e702ac5fcf
commit
c8799f3a58
|
@ -580,12 +580,12 @@ func (engine *Engine) dumpTables(ctx context.Context, tables []*schemas.Table, w
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if stp.IsNumeric() {
|
if stp.IsBool() || (dstDialect.URI().DBType == schemas.MSSQL && strings.EqualFold(stp.Name, schemas.Bit)) {
|
||||||
if _, err = io.WriteString(w, s.String); err != nil {
|
if _, err = io.WriteString(w, formatBool(s.String, dstDialect)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else if stp.IsBool() || (dstDialect.URI().DBType == schemas.MSSQL && stp.Name == schemas.Bit) {
|
} else if stp.IsNumeric() {
|
||||||
if _, err = io.WriteString(w, formatBool(s.String, dstDialect)); err != nil {
|
if _, err = io.WriteString(w, s.String); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else if sess.engine.dialect.URI().DBType == schemas.DAMENG && stp.IsTime() && len(s.String) == 25 {
|
} else if sess.engine.dialect.URI().DBType == schemas.DAMENG && stp.IsTime() && len(s.String) == 25 {
|
||||||
|
|
Loading…
Reference in New Issue