fix(rdb): 修复 PostgreSQL int2 类型映射#112
Merged
Merged
Conversation
d574103 to
07b6515
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.2 #112 +/- ##
=============================================
+ Coverage 64.92% 79.22% +14.29%
- Complexity 2341 3337 +996
=============================================
Files 343 373 +30
Lines 9375 10761 +1386
Branches 940 1278 +338
=============================================
+ Hits 6087 8525 +2438
+ Misses 2810 1616 -1194
- Partials 478 620 +142 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
int2被错误映射为Byte.class的问题int2调整为Short.classPostgresqlArraySupportTest回归测试,验证int2列类型映射结果背景
在上层 retrieval 的 binding 模式大样本验证中,
smallint/int2标签值如1000被写成-24,导致:根因定位到
PostgresqlDialect对int2的 Java 类型注册错误。验证
已本地执行:
mvn -Dsurefire.failIfNoSpecifiedTests=false -Dtest=PostgresqlArraySupportTest -pl hsweb-easy-orm-rdb -am test结果:
PostgresqlArraySupportTest: 4 passed影响
smallint/int2数值列在 easy-orm 下的类型映射