MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / testParamInt

Method testParamInt

test/lang/java/smoketest/SmokeTest.java:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 @Test
117 void testParamInt() throws SQLException {
118 PreparedStatement stmt = conn.prepareStatement("SELECT ?");
119 stmt.setInt(1, 42);
120 ResultSet rs = stmt.executeQuery();
121 Assertions.assertTrue(rs.next());
122 Assertions.assertEquals("42", rs.getString(1));
123 Assertions.assertEquals(42, rs.getInt(1));
124 rs.close();
125 stmt.close();
126 }
127
128 // Regression for materialize#4117.
129 @Test

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected