切片类型的bug? #1486
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1486
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
code:
数据库字段类型被认为是int(11), mysql v5.6.37-log
是5.6版本不支持json导致的么?如果是,建表时可不可以以err形式展示?
测试了,不是mysql版本问题,[]string可以识别为text,[]int不行,这需要修复吧?文档说的是array都能识别为text
[]string类型不需要显式注明text tag
sorry,上面说错了。mysql 5.7中[]int可以识别为text类型,看来是mysql版本问题。
还有一个问题就是array类型,即使指定notnull,在insert时若不填充有效值,xorm仍然会插入一个"null",在查询时还不会报错。
图一
图二
Can I know why this problem can't be dealt with? Too busy?
This maybe a bug.
3ks
The
null
is a json result fromnil
. So I think it will not affect the result.