trino icon indicating copy to clipboard operation
trino copied to clipboard

PreparedStatement dont support java.sql.Statement.NO_GENERATED_KEYS option

Open prrvchr opened this issue 1 year ago • 0 comments

Hi all,

I just noticed that it is not possible to execute the java.sql.Connection.prepareStatement(String sql, int option) method with option on java.sql.Statement.NO_GENERATED_KEYS without getting the error:

java.sql.SQLFeatureNotSupportedException: Auto generated keys must be NO_GENERATED_KEYS

It is still possible to call this method without an option. But using the option java.sql.Statement.NO_GENERATED_KEYS should be the same as without the option.

prrvchr avatar May 24 '24 04:05 prrvchr