HHH-17424 - Have Dialect manage more of ExtractedDatabaseMetadata
https://hibernate.atlassian.net/browse/HHH-17424
This commit is contained in:
parent
dcd7a20399
commit
637838d92b
|
@ -593,7 +593,7 @@ public class SessionFactoryOptionsBuilder implements SessionFactoryOptions {
|
|||
private boolean disallowBatchUpdates(Dialect dialect, ExtractedDatabaseMetaData meta) {
|
||||
final Boolean dialectAnswer = dialect.supportsBatchUpdates();
|
||||
if ( dialectAnswer != null ) {
|
||||
return dialectAnswer;
|
||||
return !dialectAnswer;
|
||||
}
|
||||
return !meta.supportsBatchUpdates();
|
||||
}
|
||||
|
|
|
@ -4953,7 +4953,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
|
|||
}
|
||||
|
||||
/**
|
||||
* Does this Dialect support {@linkplain PreparedStatement#addBatch() batch updates}.
|
||||
* Whether this Dialect supports {@linkplain PreparedStatement#addBatch() batch updates}.
|
||||
*
|
||||
* @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates
|
||||
* it might and that database-metadata should be consulted.
|
||||
|
@ -4966,7 +4966,7 @@ public abstract class Dialect implements ConversionContext, TypeContributor, Fun
|
|||
}
|
||||
|
||||
/**
|
||||
* Does this Dialect support {@linkplain PreparedStatement#addBatch() batch updates}.
|
||||
* Whether this Dialect supports the JDBC {@link java.sql.Types#REF_CURSOR} type.
|
||||
*
|
||||
* @return {@code true} indicates it does; {@code false} indicates it does not; {@code null} indicates
|
||||
* it might and that database-metadata should be consulted
|
||||
|
|
Loading…
Reference in New Issue