HHH-15281 INSERTs/UPDATEs no longer executed as JDBC Batch statements if hibernate.temp.use_jdbc_metadata_defaults is set to false
This commit is contained in:
parent
6f4d28b034
commit
bf547fe432
|
@ -169,7 +169,8 @@ public class ExtractedDatabaseMetaDataImpl implements ExtractedDatabaseMetaData
|
|||
private boolean supportsNamedParameters;
|
||||
private boolean supportsScrollableResults;
|
||||
private boolean supportsGetGeneratedKeys;
|
||||
private boolean supportsBatchUpdates;
|
||||
// In absence of DatabaseMetaData batching updates is assumed to be supported
|
||||
private boolean supportsBatchUpdates = true;
|
||||
private boolean supportsDataDefinitionInTransaction;
|
||||
private boolean doesDataDefinitionCauseTransactionCommit;
|
||||
private SQLStateType sqlStateType;
|
||||
|
|
|
@ -44,7 +44,7 @@ public class NoDatabaseMetaDataTest extends BaseUnitTestCase {
|
|||
assertFalse( extractedDatabaseMetaData.supportsRefCursors() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsScrollableResults() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsGetGeneratedKeys() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsBatchUpdates() );
|
||||
assertTrue( extractedDatabaseMetaData.supportsBatchUpdates() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsDataDefinitionInTransaction() );
|
||||
assertFalse( extractedDatabaseMetaData.doesDataDefinitionCauseTransactionCommit() );
|
||||
assertNull( extractedDatabaseMetaData.getSqlStateType() );
|
||||
|
@ -68,7 +68,7 @@ public class NoDatabaseMetaDataTest extends BaseUnitTestCase {
|
|||
assertFalse( extractedDatabaseMetaData.supportsRefCursors() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsScrollableResults() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsGetGeneratedKeys() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsBatchUpdates() );
|
||||
assertTrue( extractedDatabaseMetaData.supportsBatchUpdates() );
|
||||
assertFalse( extractedDatabaseMetaData.supportsDataDefinitionInTransaction() );
|
||||
assertFalse( extractedDatabaseMetaData.doesDataDefinitionCauseTransactionCommit() );
|
||||
assertNull( extractedDatabaseMetaData.getSqlStateType() );
|
||||
|
|
Loading…
Reference in New Issue