We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2fab0 commit fd8b153Copy full SHA for fd8b153
src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java
@@ -63,4 +63,24 @@ public void testAbsolute() throws Exception
63
64
stmt.close();
65
}
66
+ public void testEmptyResult()
67
+ {
68
+ try
69
70
+ Statement stmt = con.createStatement();
71
+ ResultSet rs = stmt.executeQuery("SELECT * FROM testrs where id=100");
72
+ rs.beforeFirst();
73
+ rs.afterLast();
74
+ assertTrue(!rs.first());
75
+ assertTrue(!rs.last());
76
+ assertTrue(!rs.next());
77
+
78
79
+ }
80
+ catch ( Exception ex )
81
82
+ fail( ex.getMessage() );
83
84
85
86
0 commit comments