Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ public static OracleServerConfiguration fromDialectResolutionInfo(DialectResolut
}

private static boolean isExtended(Statement statement) {
try ( final ResultSet resultSet =
statement.executeQuery( "select cast('string' as varchar2(32000)) from dual" ) ) {
resultSet.next();
// succeeded, so MAX_STRING_SIZE == EXTENDED
return true;
try (final ResultSet resultSet =
statement.executeQuery( "select property_value from database_properties "
+ "where property_name = 'MAX_STRING_SIZE'" )) {
return resultSet.next()
&& "EXTENDED".equalsIgnoreCase( resultSet.getString( 1 ) );
}
catch (SQLException ex) {
// failed, so MAX_STRING_SIZE == STANDARD, still need to check autonomous
return false;
}
}
Expand Down