TeslaCN commented on issue #23774:
URL:
https://github.com/apache/shardingsphere/issues/23774#issuecomment-1407325314
Set `prepareThreshold=2` in JDBC URL
```
try (PreparedStatement preparedStatement =
connection.prepareStatement("insert into datetime_pg values (?)")) {
preparedStatement.setObject(1, new
Time(System.currentTimeMillis()));
// preparedStatement.setTime(1, new
Time(System.currentTimeMillis())); // Same as above
preparedStatement.executeUpdate(); // Succeeded
preparedStatement.executeUpdate(); // Failed
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]