Avoid getParameterType use with Oracle 12c driver by default
Issue: SPR-14629 Issue: SPR-14574 Issue: SPR-14191
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -103,7 +103,6 @@ public class StatementCreatorUtilsTests {
|
||||
given(pmd.getParameterType(1)).willReturn(Types.SMALLINT);
|
||||
StatementCreatorUtils.setParameterValue(preparedStatement, 1, SqlTypeValue.TYPE_UNKNOWN, null, null);
|
||||
verify(pmd).getParameterType(1);
|
||||
verify(preparedStatement, never()).getConnection();
|
||||
verify(preparedStatement).setNull(1, Types.SMALLINT);
|
||||
assertTrue(StatementCreatorUtils.driversWithNoSupportForGetParameterType.isEmpty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user