nizhikov commented on code in PR #11492:
URL: https://github.com/apache/ignite/pull/11492#discussion_r1751793191


##########
modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcPreparedStatementSelfTest.java:
##########
@@ -582,7 +586,49 @@ public void testBlob() throws Exception {
 
         assertEquals(1, cnt);
 
-        stmt.setNull(1, BINARY);
+        stmt.setNull(1, BLOB);
+
+        rs = stmt.executeQuery();
+
+        cnt = 0;
+
+        while (rs.next()) {
+            if (cnt == 0)
+                assert rs.getInt("id") == 2;
+
+            cnt++;
+        }
+
+        assert cnt == 1;
+    }
+
+    /**
+     * @throws Exception If failed.
+     */
+    @Test
+    public void testClob() throws Exception {
+        stmt = conn.prepareStatement("select * from TestObject where clobVal 
is not distinct from ?");
+
+        Clob clob = conn.createClob();
+
+        clob.setString(1, "large str");
+
+        stmt.setClob(1, clob);
+
+        ResultSet rs = stmt.executeQuery();
+
+        int cnt = 0;
+
+        while (rs.next()) {
+            if (cnt == 0)
+                assert rs.getInt("id") == 1;
+
+            cnt++;
+        }
+
+        assertEquals(1, cnt);

Review Comment:
   ```suggestion
           assertTrue(rs.next());
           assertFalse(rs.next());
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to