Skip to content
Permalink
Browse files
Fix test case by changing executeQuery to execute (#1642)
  • Loading branch information
mahmoudbahaa authored and davecramer committed Dec 12, 2019
1 parent 9723f77 commit 1d47c3cc7c8abe18b72012a1c0bb4bfb3b7b5dc7
@@ -23,7 +23,7 @@
* @author Ivy (ivyyiyideng@gmail.com)
*
*/
public class NoColumnMetadataIssue1613 extends BaseTest4 {
public class NoColumnMetadataIssue1613Test extends BaseTest4 {
@Override
@Before
public void setUp() throws Exception {
@@ -34,7 +34,7 @@ public void setUp() throws Exception {
@Test
public void shouldBeNoNPE() throws Exception {
Statement statement = con.createStatement();
statement.executeQuery("INSERT INTO test_no_column_metadata values (1)");
statement.execute("INSERT INTO test_no_column_metadata values (1)");
ResultSet rs = statement.executeQuery("SELECT x FROM test_no_column_metadata x");
assertTrue(rs.next());
}
@@ -13,6 +13,7 @@
import org.postgresql.core.ReturningParserTest;
import org.postgresql.core.v3.V3ParameterListTests;
import org.postgresql.jdbc.DeepBatchedInsertStatementTest;
import org.postgresql.jdbc.NoColumnMetadataIssue1613Test;
import org.postgresql.jdbc.PgSQLXMLTest;
import org.postgresql.jdbc.PrimitiveArraySupportTest;
import org.postgresql.test.core.JavaVersionTest;
@@ -73,6 +74,7 @@
LruCacheTest.class,
MiscTest.class,
NativeQueryBindLengthTest.class,
NoColumnMetadataIssue1613Test.class,
NotifyTest.class,
OidToStringTest.class,
OidValueOfTest.class,

0 comments on commit 1d47c3c

Please sign in to comment.