Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug][jdbc][oracle]Fix the Oracle number type mapping problem #5209

Merged
merged 3 commits into from
Aug 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[bug][jdbc][oracle]Fix the Oracle number type mapping problem
zhilinli123 committed Aug 3, 2023
commit 4ebfec9329524ee9ffa11b2f7684a02ce966fc88
Original file line number Diff line number Diff line change
@@ -87,9 +87,10 @@ public SeaTunnelDataType<?> mapping(ResultSetMetaData metadata, int colIndex)
if (scale == 0) {
if (precision <= 9) {
return BasicType.INT_TYPE;
}
if (precision <= 18) {
} else if (precision <= 18) {
return BasicType.LONG_TYPE;
} else if (precision <= 38) {
return new DecimalType(38, 0);
}
}
return new DecimalType(38, 18);