MariaDB数据表字段默认值有问题 #1204
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1204
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?
MySQL:
MariaDB:
导致使用MariaDB时,
DBMetas
的返回结果,列的默认值(Column.Default
)多了一层单引号。另外在调用Sync
时会产生不符实际的告警信息。也不是所有的MariaDB都会这样,我试了下,
10.1.37
没有问题,但是10.3.12
会出问题。同样发现这个问题 默认值不对应
[xorm] [warn] 2019/06/06 15:54:03.911124 Table article Column addr db default is '''', struct default is ''
[xorm] [warn] 2019/06/06 15:54:03.912121 Table article Column area db default is '''', struct default is ''
[xorm] [warn] 2019/06/06 15:54:03.913118 Table article Column utime db default is 'NULL', struct default is NULL
[xorm] [warn] 2019/06/06 15:54:03.914116 Table article Column ctime db default is 'NULL', struct default is NULL