Open brieuc-le-faucheur opened 3 weeks ago
@brieuc-le-faucheur Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@brieuc-le-faucheur Thank you for signing the Contributor License Agreement!
Please note that the build failed for your PR.
FAILURE: Build failed with an exception.
294 actionable tasks: 139 executed, 155 from cache
* What went wrong:
Execution failed for task ':spring-jdbc:checkstyleMain'.
> A failure occurred while executing org.gradle.api.plugins.quality.internal.CheckstyleAction
> Checkstyle rule violations were found. See the report at: file:///home/runner/work/spring-framework/spring-framework/spring-jdbc/build/reports/checkstyle/main.html
Checkstyle files with violations: 1
Checkstyle violations by severity: [error:2]
Please make sure you run a full local build before submitting a PR.
Thanks
Hello @sbrannen ! I updated the PR so that the full build passes. Sorry for the inconvenience.
Hello!
While using JdbcClient, I have encountered a specific case while querying a column containing a digit. The mapping method
JdbcUtils.convertPropertyNameToUnderscoreName
does not handle numbers as separate words.Using PostgreSQL, given a table declared such as this:
Querying it with a data class declared as below will result in a PSQLException:
I think isolating numbers with underscore would match naming usage more than having numbers stuck to the word preceding it in the column name.
Here is a sample project demonstrating the exception along with the PR.
numbersInJdbcColumnNames.zip