fix: dm Database Clob field conversion error

This commit is contained in:
zzdboy 2024-02-04 08:18:06 +08:00
parent e884f059a4
commit e91f64347d
1 changed files with 7 additions and 0 deletions

View File

@ -831,6 +831,13 @@ func (d *dmClobScanner) Scan(data interface{}) error {
d.data = string(t)
d.valid = true
return nil
case string:
if len(t) <= 0 {
return nil
}
d.data = string(t)
d.valid = true
return nil
default:
return fmt.Errorf("cannot convert %T as dmClobScanner", data)
}