public static enum JdbcUtil.Bug extends Enum<JdbcUtil.Bug>
Enum Constant and Description |
---|
GET_RESULT_SET_THROWS_ILLEGAL_EXCEPTION
The Sqlite JDBC driver does not return null if the current result is not
a result set but throws an exception instead.
|
GET_UPDATE_COUNT_THROWS_ILLEGAL_EXCEPTION
The Sqlite JDBC driver does not return -1 if the current result is not an
update count but throws an exception instead.
|
RESULT_SET_STREAMING_ONLY_IF_FETCH_SIZE_IS_MIN_VALUE
The MySQL Connector/J only streams result sets if statements are
configured with a fetch size of
Integer.MIN_VALUE and the options
TYPE_FORWARD_ONLY and CONCUR_READ_ONLY. |
RETURN_GENERATED_KEYS_PRODUCES_INVALID_SQL
The Postgresql JDBC driver simply tacks a RETURNING-clause to the sql
statement without checking if the statement supports this clause.
|
Modifier and Type | Method and Description |
---|---|
static JdbcUtil.Bug |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JdbcUtil.Bug[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JdbcUtil.Bug RETURN_GENERATED_KEYS_PRODUCES_INVALID_SQL
public static final JdbcUtil.Bug GET_RESULT_SET_THROWS_ILLEGAL_EXCEPTION
public static final JdbcUtil.Bug GET_UPDATE_COUNT_THROWS_ILLEGAL_EXCEPTION
public static final JdbcUtil.Bug RESULT_SET_STREAMING_ONLY_IF_FETCH_SIZE_IS_MIN_VALUE
Integer.MIN_VALUE
and the options
TYPE_FORWARD_ONLY and CONCUR_READ_ONLY. See
https://dev.mysql.com/doc/connector-j/en/connector-j-reference-implementation-notes.html
for details. Since this fetch size setting does not seem to be specified
JDBC behaviour, we handle it as a special case.public static JdbcUtil.Bug[] values()
for (JdbcUtil.Bug c : JdbcUtil.Bug.values()) System.out.println(c);
public static JdbcUtil.Bug valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.