FIX 修复通用Rdbms写入时Boolean被转化为String导致某些数据库类型转化错误

This commit is contained in:
ycwiacb 2022-10-24 11:27:53 +08:00 committed by GitHub
parent de5d5a5f29
commit 7838402849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -519,7 +519,7 @@ public class CommonRdbmsWriter {
break;
case Types.BOOLEAN:
preparedStatement.setString(columnIndex + 1, column.asString());
preparedStatement.setBoolean(columnIndex + 1, column.asBoolean());
break;
// warn: bit(1) -> Types.BIT 可使用setBoolean