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

Retrieve NUMERIC and DECIMAL as Double in PostgreSQL #2118

Merged
merged 1 commit into from
Dec 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/jvm_postgresql/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ CREATE TABLE some_types (
some_int4 INT4, -- Retrieved as Int
some_bigint BIGINT, -- Retrieved as Long
some_int8 INT8, -- Retrieved as Long
some_numeric NUMERIC, -- Retrieved as Long
some_decimal DECIMAL, -- Retrieved as Long
some_numeric NUMERIC, -- Retrieved as Double
some_decimal DECIMAL, -- Retrieved as Double
some_real REAL, -- Retrieved as Double
some_float4 FLOAT4, -- Retrieved as Double
some_double_prec DOUBLE PRECISION, -- Retrieved as Double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private fun PostgreSqlTypeName.type(): IntermediateType {
smallIntDataType != null -> IntermediateType(PostgreSqlType.SMALL_INT)
intDataType != null -> IntermediateType(PostgreSqlType.INTEGER)
bigIntDataType != null -> IntermediateType(PostgreSqlType.BIG_INT)
numericDataType != null -> IntermediateType(SqliteType.INTEGER)
numericDataType != null -> IntermediateType(SqliteType.REAL)
approximateNumericDataType != null -> IntermediateType(SqliteType.REAL)
stringDataType != null -> IntermediateType(SqliteType.TEXT)
smallSerialDataType != null -> IntermediateType(PostgreSqlType.SMALL_INT)
Expand Down