Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c96e0ea4
T
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1191
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c96e0ea4
编写于
1月 26, 2021
作者:
Z
zyyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change
上级
16069460
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
29 deletion
+26
-29
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
...rc/test/java/com/taosdata/jdbc/PreparedStatementTest.java
+26
-29
未找到文件。
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
浏览文件 @
c96e0ea4
...
@@ -73,104 +73,101 @@ public class PreparedStatementTest {
...
@@ -73,104 +73,101 @@ public class PreparedStatementTest {
@Test
@Test
public
void
case004_testUnsupport
()
throws
SQLException
{
public
void
case004_testUnsupport
()
throws
SQLException
{
TSDBPreparedStatement
tsdbStatement
=
statement
;
Assert
.
assertNotNull
(
tsdbStatement
.
unwrap
(
TSDBPreparedStatement
.
class
));
Assert
.
assertNotNull
(
statement
.
unwrap
(
TSDBPreparedStatement
.
class
));
try
{
Assert
.
assertTrue
(
statement
.
isWrapperFor
(
TSDBPreparedStatement
.
class
));
tsdbStatement
.
isWrapperFor
(
null
);
}
catch
(
SQLException
e
)
{
}
try
{
try
{
tsdbS
tatement
.
getMaxFieldSize
();
s
tatement
.
getMaxFieldSize
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
setMaxFieldSize
(
0
);
s
tatement
.
setMaxFieldSize
(
0
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
setEscapeProcessing
(
true
);
s
tatement
.
setEscapeProcessing
(
true
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
cancel
();
s
tatement
.
cancel
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getWarnings
();
s
tatement
.
getWarnings
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
clearWarnings
();
s
tatement
.
clearWarnings
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
setCursorName
(
null
);
s
tatement
.
setCursorName
(
null
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getMoreResults
();
s
tatement
.
getMoreResults
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
setFetchDirection
(
0
);
s
tatement
.
setFetchDirection
(
0
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getFetchDirection
();
s
tatement
.
getFetchDirection
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getResultSetConcurrency
();
s
tatement
.
getResultSetConcurrency
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getResultSetType
();
s
tatement
.
getResultSetType
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getConnection
();
s
tatement
.
getConnection
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getMoreResults
();
s
tatement
.
getMoreResults
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getGeneratedKeys
();
s
tatement
.
getGeneratedKeys
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
executeUpdate
(
null
,
0
);
s
tatement
.
executeUpdate
(
null
,
0
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
executeUpdate
(
null
,
new
int
[]{
0
});
s
tatement
.
executeUpdate
(
null
,
new
int
[]{
0
});
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
executeUpdate
(
null
,
new
String
[]{
"str1"
,
"str2"
});
s
tatement
.
executeUpdate
(
null
,
new
String
[]{
"str1"
,
"str2"
});
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
getResultSetHoldability
();
s
tatement
.
getResultSetHoldability
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
setPoolable
(
true
);
s
tatement
.
setPoolable
(
true
);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
isPoolable
();
s
tatement
.
isPoolable
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
closeOnCompletion
();
s
tatement
.
closeOnCompletion
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
try
{
try
{
tsdbS
tatement
.
isCloseOnCompletion
();
s
tatement
.
isCloseOnCompletion
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录