postgres 下,字段类型的对应关系 TIMESTAMPZ 是否也应该变为 TEXT #2069
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#2069
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?
这是 xorm 现在的对应关系
在 mysql 里,TIMESTAMP 是随时区变化的,DATETIME 与时区无关
在 postgres 里,TIMESTAMP 类似 mysql 的 DATETIME 与时区无关,TIMESTAMP with zone 查询结果与时区有关
所以 postgres 里,TIMESTAMPZ 调整为 TEXT,可以与 mysql 达到类似的效果,而 TIMESTAMP 改为对应 TIMESTAMP with zone
Changing TIMESTAMP to
TIMESTAMP with zone
will break old codes I don't want to do.xorm DATETIME & TIMESTAMP both are mapped to TIMESTAMP in pgsql
but TIMESTAMP in pgsql like mysql's datetime, TIMESTAMP with zone in pgsql like mysql's timestamp
The tag of the model has two meanings between mysql and pgsql when xorm's TIMESTAMP