File tree 2 files changed +6
-9
lines changed
main/java/org/tarantool/jdbc
test/java/org/tarantool/jdbc
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -335,10 +335,10 @@ protected boolean handleResult(Object result) throws SQLException {
335
335
/**
336
336
* Returns {@link ResultSet} which will be initialized by <code>data</code>
337
337
*
338
- * @param data predifined result to be wrapped by {@link ResultSet}
338
+ * @param data predefined result to be wrapped by {@link ResultSet}
339
339
* @return wrapped result
340
340
* @throws SQLException if a database access error occurs or
341
- * this method is called on a closed <code>Statement</code>
341
+ * this method is called on a closed <code>Statement</code>
342
342
*/
343
343
public ResultSet executeMetadata (JDBCBridge data ) throws SQLException {
344
344
checkNotClosed ();
Original file line number Diff line number Diff line change 22
22
23
23
@ SuppressWarnings ("Since15" )
24
24
public class JdbcConnectionIT extends AbstractJdbcIT {
25
+
25
26
@ Test
26
27
public void testCreateStatement () throws SQLException {
27
28
Statement stmt = conn .createStatement ();
@@ -125,17 +126,13 @@ public void testConnectionIsWrapperFor() throws SQLException {
125
126
}
126
127
127
128
@ Test
128
- public void testGetHoldability () throws SQLException {
129
+ public void testDefaultGetHoldability () throws SQLException {
129
130
// default connection holdability should be equal to metadata one
130
131
assertEquals (conn .getMetaData ().getResultSetHoldability (), conn .getHoldability ());
131
-
132
- // change connection holdability
133
- conn .setHoldability (ResultSet .HOLD_CURSORS_OVER_COMMIT );
134
- assertEquals (ResultSet .HOLD_CURSORS_OVER_COMMIT , conn .getHoldability ());
135
132
}
136
133
137
134
@ Test
138
- public void testSetHoldability () throws SQLException {
135
+ public void testSetAndGetHoldability () throws SQLException {
139
136
conn .setHoldability (ResultSet .HOLD_CURSORS_OVER_COMMIT );
140
137
assertEquals (ResultSet .HOLD_CURSORS_OVER_COMMIT , conn .getHoldability ());
141
138
@@ -195,4 +192,4 @@ public void testPrepareHoldableStatement() throws SQLException {
195
192
});
196
193
}
197
194
198
- }
195
+ }
You can’t perform that action at this time.
0 commit comments