-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix SQL corresponding type for Java long #479
Conversation
@@ -121,7 +121,7 @@ object ParameterMetaData extends JavaTimeParameterMetaData { | |||
/** Numeric (big integer) parameter meta data */ | |||
implicit object BigIntParameterMetaData extends ParameterMetaData[BigInt] { | |||
val sqlType = "NUMERIC" | |||
val jdbcType = Types.BIGINT | |||
val jdbcType = Types.NUMERIC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's specific to Pg, so must not be defined there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the change. The problem I have noticed occurs only with long
types.
@@ -121,7 +121,7 @@ object ParameterMetaData extends JavaTimeParameterMetaData { | |||
/** Numeric (big integer) parameter meta data */ | |||
implicit object BigIntParameterMetaData extends ParameterMetaData[BigInt] { | |||
val sqlType = "NUMERIC" | |||
val jdbcType = Types.BIGINT | |||
val jdbcType = Types.NUMERIC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -130,13 +130,13 @@ object ParameterMetaData extends JavaTimeParameterMetaData { | |||
} | |||
|
|||
implicit object LongParameterMetaData extends ParameterMetaData[Long] { | |||
val sqlType = BigIntParameterMetaData.sqlType | |||
val jdbcType = BigIntParameterMetaData.jdbcType | |||
val sqlType = "BIGINT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, specific to PG, so should not happen there
Pull Request Checklist
Fixes
Fixes #478
Purpose
Fixes
ParameterMetaData
forLong
type.Long
should be represented by the SQLBIGINT
type.Background Context
I saw this behavior because it broke an optimized query.
References
None