Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
bfe2a9aa
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bfe2a9aa
编写于
6月 15, 2020
作者:
S
Shuaiqiang Chang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: scan3 bug
上级
21cdf622
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
50 addition
and
30 deletion
+50
-30
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java
...src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java
+3
-2
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBJNIConnector.java
...dbc/src/main/java/com/taosdata/jdbc/TSDBJNIConnector.java
+1
-1
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBSubscribe.java
...r/jdbc/src/main/java/com/taosdata/jdbc/TSDBSubscribe.java
+1
-2
src/connector/jdbc/src/test/java/TestAsyncTSDBSubscribe.java
src/connector/jdbc/src/test/java/TestAsyncTSDBSubscribe.java
+6
-3
src/connector/jdbc/src/test/java/TestPreparedStatement.java
src/connector/jdbc/src/test/java/TestPreparedStatement.java
+7
-4
src/connector/jdbc/src/test/java/TestTSDBDatabaseMetaData.java
...onnector/jdbc/src/test/java/TestTSDBDatabaseMetaData.java
+13
-9
src/connector/jdbc/src/test/java/TestTSDBSubscribe.java
src/connector/jdbc/src/test/java/TestTSDBSubscribe.java
+2
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
...c/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
+1
-1
src/connector/jdbc/src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
...src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
+9
-0
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
...rc/test/java/com/taosdata/jdbc/PreparedStatementTest.java
+2
-2
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
...r/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
+5
-5
未找到文件。
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDatabaseMetaData.java
浏览文件 @
bfe2a9aa
...
@@ -527,8 +527,9 @@ public class TSDBDatabaseMetaData implements java.sql.DatabaseMetaData {
...
@@ -527,8 +527,9 @@ public class TSDBDatabaseMetaData implements java.sql.DatabaseMetaData {
public
ResultSet
getTables
(
String
catalog
,
String
schemaPattern
,
String
tableNamePattern
,
String
[]
types
)
public
ResultSet
getTables
(
String
catalog
,
String
schemaPattern
,
String
tableNamePattern
,
String
[]
types
)
throws
SQLException
{
throws
SQLException
{
if
(
conn
!=
null
&&
!
conn
.
isClosed
())
{
Statement
stmt
=
null
;
Statement
stmt
=
conn
.
createStatement
();
if
(
null
!=
conn
&&
!
conn
.
isClosed
())
{
stmt
=
conn
.
createStatement
();
if
(
catalog
==
null
||
catalog
.
length
()
<
1
)
{
if
(
catalog
==
null
||
catalog
.
length
()
<
1
)
{
catalog
=
conn
.
getCatalog
();
catalog
=
conn
.
getCatalog
();
}
}
...
...
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBJNIConnector.java
浏览文件 @
bfe2a9aa
...
@@ -19,7 +19,7 @@ import java.sql.SQLWarning;
...
@@ -19,7 +19,7 @@ import java.sql.SQLWarning;
import
java.util.List
;
import
java.util.List
;
public
class
TSDBJNIConnector
{
public
class
TSDBJNIConnector
{
static
volatile
Boolean
isInitialized
=
false
;
private
static
volatile
Boolean
isInitialized
=
false
;
static
{
static
{
System
.
loadLibrary
(
"taos"
);
System
.
loadLibrary
(
"taos"
);
...
...
src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBSubscribe.java
浏览文件 @
bfe2a9aa
...
@@ -171,8 +171,7 @@ public class TSDBSubscribe {
...
@@ -171,8 +171,7 @@ public class TSDBSubscribe {
state
=
1
;
state
=
1
;
try
{
try
{
TSDBResultSet
resultSet
=
consume
(
subscription
);
callBack
.
invoke
(
consume
(
subscription
));
callBack
.
invoke
(
resultSet
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
this
.
cancel
();
this
.
cancel
();
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
...
...
src/connector/jdbc/src/test/java/TestAsyncTSDBSubscribe.java
浏览文件 @
bfe2a9aa
...
@@ -3,10 +3,11 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -3,10 +3,11 @@ import org.apache.commons.lang3.StringUtils;
import
java.sql.Connection
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
import
java.sql.DriverManager
;
import
java.sql.SQLException
;
import
java.util.Properties
;
import
java.util.Properties
;
public
class
TestAsyncTSDBSubscribe
{
public
class
TestAsyncTSDBSubscribe
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
SQLException
{
String
usage
=
"java -cp taos-jdbcdriver-1.0.3_dev-dist.jar com.taosdata.jdbc.TSDBSubscribe -db dbName -topic topicName "
+
String
usage
=
"java -cp taos-jdbcdriver-1.0.3_dev-dist.jar com.taosdata.jdbc.TSDBSubscribe -db dbName -topic topicName "
+
"-tname tableName -h host"
;
"-tname tableName -h host"
;
if
(
args
.
length
<
2
)
{
if
(
args
.
length
<
2
)
{
...
@@ -38,7 +39,6 @@ public class TestAsyncTSDBSubscribe {
...
@@ -38,7 +39,6 @@ public class TestAsyncTSDBSubscribe {
}
}
Connection
connection
=
null
;
Connection
connection
=
null
;
TSDBSubscribe
subscribe
=
null
;
long
subscribId
=
0
;
long
subscribId
=
0
;
try
{
try
{
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
...
@@ -46,7 +46,7 @@ public class TestAsyncTSDBSubscribe {
...
@@ -46,7 +46,7 @@ public class TestAsyncTSDBSubscribe {
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
host
);
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
host
);
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://"
+
host
+
":0/"
+
dbName
+
"?user=root&password=taosdata"
,
properties
);
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://"
+
host
+
":0/"
+
dbName
+
"?user=root&password=taosdata"
,
properties
);
String
rawSql
=
"select * from "
+
tName
+
";"
;
String
rawSql
=
"select * from "
+
tName
+
";"
;
subscribe
=
((
TSDBConnection
)
connection
).
createSubscribe
();
TSDBSubscribe
subscribe
=
((
TSDBConnection
)
connection
).
createSubscribe
();
subscribId
=
subscribe
.
subscribe
(
topic
,
rawSql
,
false
,
1000
,
new
CallBack
(
"first"
));
subscribId
=
subscribe
.
subscribe
(
topic
,
rawSql
,
false
,
1000
,
new
CallBack
(
"first"
));
long
subscribId2
=
subscribe
.
subscribe
(
"test"
,
rawSql
,
false
,
1000
,
new
CallBack
(
"second"
));
long
subscribId2
=
subscribe
.
subscribe
(
"test"
,
rawSql
,
false
,
1000
,
new
CallBack
(
"second"
));
int
a
=
0
;
int
a
=
0
;
...
@@ -55,6 +55,9 @@ public class TestAsyncTSDBSubscribe {
...
@@ -55,6 +55,9 @@ public class TestAsyncTSDBSubscribe {
System
.
err
.
println
(
"cancel subscribe"
);
System
.
err
.
println
(
"cancel subscribe"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
if
(
null
!=
connection
&&
!
connection
.
isClosed
())
{
connection
.
close
();
}
}
}
}
}
...
...
src/connector/jdbc/src/test/java/TestPreparedStatement.java
浏览文件 @
bfe2a9aa
...
@@ -6,19 +6,20 @@ import java.util.Properties;
...
@@ -6,19 +6,20 @@ import java.util.Properties;
public
class
TestPreparedStatement
{
public
class
TestPreparedStatement
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
SQLException
{
Connection
connection
=
null
;
try
{
try
{
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Properties
properties
=
new
Properties
();
Properties
properties
=
new
Properties
();
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
"localhost"
);
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
"localhost"
);
Connection
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://localhost:0/?user=root&password=taosdata"
,
properties
);
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://localhost:0/?user=root&password=taosdata"
,
properties
);
String
rawSql
=
"select * from test.log0601"
;
String
rawSql
=
"select * from test.log0601"
;
// String[] params = new String[]{"ts", "c1"};
// String[] params = new String[]{"ts", "c1"};
PreparedStatement
pstmt
=
(
TSDBPreparedStatement
)
connection
.
prepareStatement
(
rawSql
);
PreparedStatement
pstmt
=
(
TSDBPreparedStatement
)
connection
.
prepareStatement
(
rawSql
);
ResultSet
resSet
=
pstmt
.
executeQuery
();
ResultSet
resSet
=
pstmt
.
executeQuery
();
while
(
resSet
.
next
())
{
while
(
resSet
.
next
())
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
System
.
out
.
printf
(
"%d: %s\n"
,
i
,
resSet
.
getString
(
i
));
System
.
out
.
printf
(
"%d: %s
\n"
,
i
,
resSet
.
getString
(
i
));
}
}
}
}
resSet
.
close
();
resSet
.
close
();
...
@@ -27,7 +28,9 @@ public class TestPreparedStatement {
...
@@ -27,7 +28,9 @@ public class TestPreparedStatement {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
if
(
null
!=
connection
)
{
connection
.
close
();
}
}
}
}
}
}
}
src/connector/jdbc/src/test/java/TestTSDBDatabaseMetaData.java
浏览文件 @
bfe2a9aa
import
com.taosdata.jdbc.TSDBDriver
;
import
com.taosdata.jdbc.TSDBDriver
;
import
java.sql.Connection
;
import
java.sql.*
;
import
java.sql.DatabaseMetaData
;
import
java.sql.DriverManager
;
import
java.sql.ResultSet
;
import
java.util.Properties
;
import
java.util.Properties
;
public
class
TestTSDBDatabaseMetaData
{
public
class
TestTSDBDatabaseMetaData
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
SQLException
{
Connection
connection
=
null
;
DatabaseMetaData
dbMetaData
=
null
;
ResultSet
resSet
=
null
;
try
{
try
{
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Properties
properties
=
new
Properties
();
Properties
properties
=
new
Properties
();
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
"
192.168.1.114
"
);
properties
.
setProperty
(
TSDBDriver
.
PROPERTY_KEY_HOST
,
"
localhost
"
);
Connection
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://192.168.1.114
:0/?user=root&password=taosdata"
,
properties
);
connection
=
DriverManager
.
getConnection
(
"jdbc:TAOS://localhost
:0/?user=root&password=taosdata"
,
properties
);
DatabaseMetaData
dbMetaData
=
connection
.
getMetaData
();
dbMetaData
=
connection
.
getMetaData
();
ResultSet
resSet
=
dbMetaData
.
getCatalogs
();
resSet
=
dbMetaData
.
getCatalogs
();
while
(
resSet
.
next
())
{
while
(
resSet
.
next
())
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
System
.
out
.
printf
(
"dbMetaData.getCatalogs(%d) = %s\n"
,
i
,
resSet
.
getString
(
i
));
System
.
out
.
printf
(
"dbMetaData.getCatalogs(%d) = %s\n"
,
i
,
resSet
.
getString
(
i
));
}
}
}
}
resSet
.
close
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
if
(
null
!=
connection
)
{
connection
.
close
();
}
}
}
}
}
}
}
src/connector/jdbc/src/test/java/TestTSDBSubscribe.java
浏览文件 @
bfe2a9aa
...
@@ -53,9 +53,10 @@ public class TestTSDBSubscribe {
...
@@ -53,9 +53,10 @@ public class TestTSDBSubscribe {
subscribe
=
((
TSDBConnection
)
connection
).
createSubscribe
();
subscribe
=
((
TSDBConnection
)
connection
).
createSubscribe
();
subscribId
=
subscribe
.
subscribe
(
topic
,
rawSql
,
false
,
1000
);
subscribId
=
subscribe
.
subscribe
(
topic
,
rawSql
,
false
,
1000
);
int
a
=
0
;
int
a
=
0
;
TSDBResultSet
resSet
=
null
;
while
(
true
)
{
while
(
true
)
{
Thread
.
sleep
(
900
);
Thread
.
sleep
(
900
);
TSDBResultSet
resSet
=
subscribe
.
consume
(
subscribId
);
resSet
=
subscribe
.
consume
(
subscribId
);
while
(
resSet
.
next
())
{
while
(
resSet
.
next
())
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
for
(
int
i
=
1
;
i
<=
resSet
.
getMetaData
().
getColumnCount
();
i
++)
{
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/AsyncSubscribeTest.java
浏览文件 @
bfe2a9aa
...
@@ -37,7 +37,7 @@ public class AsyncSubscribeTest {
...
@@ -37,7 +37,7 @@ public class AsyncSubscribeTest {
statement
.
executeUpdate
(
"create database if not exists "
+
dbName
);
statement
.
executeUpdate
(
"create database if not exists "
+
dbName
);
statement
.
executeUpdate
(
"create table if not exists "
+
dbName
+
"."
+
tName
+
" (ts timestamp, k int, v int)"
);
statement
.
executeUpdate
(
"create table if not exists "
+
dbName
+
"."
+
tName
+
" (ts timestamp, k int, v int)"
);
long
ts
=
System
.
currentTimeMillis
();
long
ts
=
System
.
currentTimeMillis
();
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
ts
+=
i
;
ts
+=
i
;
statement
.
executeUpdate
(
"insert into \" + dbName + \".\" + tName + \" values ("
+
ts
+
", "
+
(
100
+
i
)
+
", "
+
i
+
")"
);
statement
.
executeUpdate
(
"insert into \" + dbName + \".\" + tName + \" values ("
+
ts
+
", "
+
(
100
+
i
)
+
", "
+
i
+
")"
);
}
}
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/DatabaseMetaDataTest.java
浏览文件 @
bfe2a9aa
package
com.taosdata.jdbc
;
package
com.taosdata.jdbc
;
import
org.junit.AfterClass
;
import
org.junit.BeforeClass
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -41,6 +42,7 @@ public class DatabaseMetaDataTest {
...
@@ -41,6 +42,7 @@ public class DatabaseMetaDataTest {
System
.
out
.
printf
(
"%d: %s\n"
,
i
,
resultSet
.
getString
(
i
));
System
.
out
.
printf
(
"%d: %s\n"
,
i
,
resultSet
.
getString
(
i
));
}
}
}
}
resultSet
.
close
();
databaseMetaData
.
isWrapperFor
(
null
);
databaseMetaData
.
isWrapperFor
(
null
);
databaseMetaData
.
allProceduresAreCallable
();
databaseMetaData
.
allProceduresAreCallable
();
databaseMetaData
.
allTablesAreSelectable
();
databaseMetaData
.
allTablesAreSelectable
();
...
@@ -228,4 +230,11 @@ public class DatabaseMetaDataTest {
...
@@ -228,4 +230,11 @@ public class DatabaseMetaDataTest {
databaseMetaData
.
generatedKeyAlwaysReturned
();
databaseMetaData
.
generatedKeyAlwaysReturned
();
}
}
@AfterClass
public
static
void
close
()
throws
SQLException
{
statement
.
executeUpdate
(
"drop database "
+
dbName
);
statement
.
close
();
connection
.
close
();
}
}
}
src/connector/jdbc/src/test/java/com/taosdata/jdbc/PreparedStatementTest.java
浏览文件 @
bfe2a9aa
...
@@ -55,7 +55,7 @@ public class PreparedStatementTest {
...
@@ -55,7 +55,7 @@ public class PreparedStatementTest {
@Test
@Test
public
void
testPreparedStatement
()
throws
SQLException
{
public
void
testPreparedStatement
()
throws
SQLException
{
long
ts
=
System
.
currentTimeMillis
();
long
ts
=
System
.
currentTimeMillis
()
+
20000
;
PreparedStatement
saveStatement
=
connection
PreparedStatement
saveStatement
=
connection
.
prepareStatement
(
"insert into "
+
dbName
+
"."
+
tName
+
" values ("
+
ts
+
", 1)"
);
.
prepareStatement
(
"insert into "
+
dbName
+
"."
+
tName
+
" values ("
+
ts
+
", 1)"
);
...
@@ -70,7 +70,7 @@ public class PreparedStatementTest {
...
@@ -70,7 +70,7 @@ public class PreparedStatementTest {
TSDBPreparedStatement
saveStatement
=
(
TSDBPreparedStatement
)
connection
TSDBPreparedStatement
saveStatement
=
(
TSDBPreparedStatement
)
connection
.
prepareStatement
(
"insert into "
+
dbName
+
"."
+
tName
+
" values (?, ?)"
);
.
prepareStatement
(
"insert into "
+
dbName
+
"."
+
tName
+
" values (?, ?)"
);
saveStatement
.
setObject
(
1
,
ts
+
100
);
saveStatement
.
setObject
(
1
,
ts
+
100
00
);
saveStatement
.
setObject
(
2
,
3
);
saveStatement
.
setObject
(
2
,
3
);
int
rows
=
saveStatement
.
executeUpdate
();
int
rows
=
saveStatement
.
executeUpdate
();
assertEquals
(
1
,
rows
);
assertEquals
(
1
,
rows
);
...
...
src/connector/jdbc/src/test/java/com/taosdata/jdbc/SubscribeTest.java
浏览文件 @
bfe2a9aa
...
@@ -20,7 +20,7 @@ public class SubscribeTest {
...
@@ -20,7 +20,7 @@ public class SubscribeTest {
String
host
=
"localhost"
;
String
host
=
"localhost"
;
String
topic
=
"test"
;
String
topic
=
"test"
;
//
@Before
@Before
public
void
createDatabase
()
throws
SQLException
{
public
void
createDatabase
()
throws
SQLException
{
try
{
try
{
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
Class
.
forName
(
"com.taosdata.jdbc.TSDBDriver"
);
...
@@ -36,13 +36,13 @@ public class SubscribeTest {
...
@@ -36,13 +36,13 @@ public class SubscribeTest {
statement
.
executeUpdate
(
"create database if not exists "
+
dbName
);
statement
.
executeUpdate
(
"create database if not exists "
+
dbName
);
statement
.
executeUpdate
(
"create table if not exists "
+
dbName
+
"."
+
tName
+
" (ts timestamp, k int, v int)"
);
statement
.
executeUpdate
(
"create table if not exists "
+
dbName
+
"."
+
tName
+
" (ts timestamp, k int, v int)"
);
long
ts
=
System
.
currentTimeMillis
();
long
ts
=
System
.
currentTimeMillis
();
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
ts
+=
i
;
ts
+=
i
;
statement
.
executeUpdate
(
"insert into \" + dbName + \".\" + tName + \" values ("
+
ts
+
", "
+
(
100
+
i
)
+
", "
+
i
+
")"
);
statement
.
executeUpdate
(
"insert into \" + dbName + \".\" + tName + \" values ("
+
ts
+
", "
+
(
100
+
i
)
+
", "
+
i
+
")"
);
}
}
}
}
//
@Test
@Test
public
void
subscribe
()
throws
Exception
{
public
void
subscribe
()
throws
Exception
{
TSDBSubscribe
subscribe
=
null
;
TSDBSubscribe
subscribe
=
null
;
long
subscribId
=
0
;
long
subscribId
=
0
;
...
@@ -68,7 +68,7 @@ public class SubscribeTest {
...
@@ -68,7 +68,7 @@ public class SubscribeTest {
}
}
resSet
.
close
();
resSet
.
close
();
a
++;
a
++;
if
(
a
>=
3
)
{
if
(
a
>=
2
)
{
break
;
break
;
}
}
}
}
...
@@ -81,7 +81,7 @@ public class SubscribeTest {
...
@@ -81,7 +81,7 @@ public class SubscribeTest {
}
}
}
}
//
@After
@After
public
void
close
()
throws
Exception
{
public
void
close
()
throws
Exception
{
statement
.
executeQuery
(
"drop database "
+
dbName
);
statement
.
executeQuery
(
"drop database "
+
dbName
);
statement
.
close
();
statement
.
close
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录