chore: ignore unnecessary char type cast in GetColumns #2278
No reviewers
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#2278
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "flyingpigge/xorm:chore/ignore-char-tranform"
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?
PostgreSQL有两种char类型:
character
和"char"
: https://www.postgresql.org/docs/current/datatype-character.html.pg_class
里的relkind
是"char"
类型,所以GetColumns
这里应该转成::"char"
或者和本PR里请求的一样去掉转换。这样对于PostgreSQL以及其他兼容PostgreSQL的数据库容错性更好,在做比较时它们通常都会被隐式转换。Could you write a test for that?
Well, the type casting involved in this piece are basically some of the internal behavior of the db side, and I'm not sure what kind of test would be appropriate to add in this PR. Since the affected function
GetColumns
is called in almost all test cases in ci jobtest postgres
, I think it's okay to leave this PR without any test here. Does it LGTY?Hi @lunny , can we merge this PR now? 😃