We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When I use JDBC to build a PreparedStatement and use setObject method to insert to database, a String value can insert to a Integer column.
PreparedStatement
setObject
To Reproduce
I use Hutool wrap the sql and insert to db.
final Db db = Db.of(DbConfig.of().setUrl("jdbc:sqlite:d:/test/test.db")); db.insert(Entity.of("user").set("age", "testStr2"));
and age column is a INTEGER column.
age
Expected behavior A clear and concise description of what you expected to happen.
Logs
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered:
SQLite doesn't care about types.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When I use JDBC to build a
PreparedStatement
and usesetObject
method to insert to database, a String value can insert to a Integer column.To Reproduce
I use Hutool wrap the sql and insert to db.
and
age
column is a INTEGER column.Expected behavior
A clear and concise description of what you expected to happen.
Logs
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: