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

Support scale for IN/OUT parameters #40

Open
mhewedy opened this issue Sep 2, 2018 · 1 comment
Open

Support scale for IN/OUT parameters #40

mhewedy opened this issue Sep 2, 2018 · 1 comment
Milestone

Comments

@mhewedy
Copy link
Owner

mhewedy commented Sep 2, 2018

In parameters:

statement.setObject(i + PARAM_OFFSET, inParams.get(i).value, inParams.get(i).sqlType);

Output parameters:

statement.registerOutParameter(i + PARAM_OFFSET + outParamIndex, outParamsTypes.get(i).sqlType);

The following snippet is from spring-jdbc

if (declaredParam.getScale() != null) {
	cs.registerOutParameter(sqlColIndx, declaredParam.getSqlType(), declaredParam.getScale());
}
else {
	cs.registerOutParameter(sqlColIndx, declaredParam.getSqlType());
}
@mhewedy
Copy link
Owner Author

mhewedy commented Oct 1, 2018

for statement parameters see:
org.springframework.jdbc.core.StatementCreatorUtils.setParameterValueInternal

@mhewedy mhewedy added this to the 0.0.21 milestone Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant