diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-01-05 14:28:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 14:28:51 +0800 |
commit | 126c9331d6d8789563fae5d5bac2196d63fee0e8 (patch) | |
tree | 304d5f1ce134bd75344a4e7e1a376d7a6dc9cfb1 /vendor/xorm.io/xorm/session.go | |
parent | 8db0372a45082c8827bdee1b449f618b393c026d (diff) | |
download | gitea-126c9331d6d8789563fae5d5bac2196d63fee0e8.tar.gz gitea-126c9331d6d8789563fae5d5bac2196d63fee0e8.zip |
upgrade xorm to v1.0.6 (#14246)
Diffstat (limited to 'vendor/xorm.io/xorm/session.go')
-rw-r--r-- | vendor/xorm.io/xorm/session.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/xorm.io/xorm/session.go b/vendor/xorm.io/xorm/session.go index b6ab3eb5bf..17abd453a8 100644 --- a/vendor/xorm.io/xorm/session.go +++ b/vendor/xorm.io/xorm/session.go @@ -503,7 +503,7 @@ func (session *Session) slice2Bean(scanResults []interface{}, fields []string, b fieldType := fieldValue.Type() hasAssigned := false - if col.SQLType.IsJson() { + if col.IsJSON { var bs []byte if rawValueType.Kind() == reflect.String { bs = []byte(vv.String()) @@ -683,7 +683,7 @@ func (session *Session) slice2Bean(scanResults []interface{}, fields []string, b session.engine.logger.Errorf("sql.Sanner error: %v", err) hasAssigned = false } - } else if col.SQLType.IsJson() { + } else if col.IsJSON { if rawValueType.Kind() == reflect.String { hasAssigned = true x := reflect.New(fieldType) |