change
This commit is contained in:
parent
b4f070e3ae
commit
030d4532e0
|
@ -1,6 +1,7 @@
|
||||||
package com.taosdata.jdbc;
|
package com.taosdata.jdbc;
|
||||||
|
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -114,16 +115,8 @@ public class ResultSetTest {
|
||||||
public void testUnsupport() throws SQLException {
|
public void testUnsupport() throws SQLException {
|
||||||
statement.executeQuery("show databases");
|
statement.executeQuery("show databases");
|
||||||
resSet = statement.getResultSet();
|
resSet = statement.getResultSet();
|
||||||
try {
|
Assert.assertNotNull(resSet.unwrap(TSDBResultSet.class));
|
||||||
resSet.unwrap(null);
|
Assert.assertTrue(resSet.isWrapperFor(TSDBResultSet.class));
|
||||||
} catch (SQLException e) {
|
|
||||||
assertTrue(e.getMessage().contains("this operation is NOT supported currently!"));
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
resSet.isWrapperFor(null);
|
|
||||||
} catch (SQLException e) {
|
|
||||||
assertTrue(e.getMessage().contains("this operation is NOT supported currently!"));
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
resSet.getAsciiStream(0);
|
resSet.getAsciiStream(0);
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
|
Loading…
Reference in New Issue