Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flink_warehouse_rt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
flink_warehouse_rt
Commits
9401114e
Commit
9401114e
authored
May 06, 2020
by
刘喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
java gc close ps
parent
24000c60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MysqlJdbcDim.java
..._dimen_d_rt/src/main/java/com/gmei/jdbc/MysqlJdbcDim.java
+3
-2
No files found.
ml_c_et_pe_preciseexposure_dimen_d_rt/src/main/java/com/gmei/jdbc/MysqlJdbcDim.java
View file @
9401114e
...
@@ -79,8 +79,7 @@ public class MysqlJdbcDim {
...
@@ -79,8 +79,7 @@ public class MysqlJdbcDim {
st
.
executeUpdate
(
sql
);
st
.
executeUpdate
(
sql
);
}
}
public
ResultSet
query
(
String
sql
,
List
<
Object
>
param
)
{
public
ResultSet
query
(
String
sql
,
List
<
Object
>
param
)
throws
SQLException
{
Statement
st
=
null
;
PreparedStatement
ps
=
null
;
PreparedStatement
ps
=
null
;
ResultSet
rs
=
null
;
ResultSet
rs
=
null
;
try
{
try
{
...
@@ -96,6 +95,8 @@ public class MysqlJdbcDim {
...
@@ -96,6 +95,8 @@ public class MysqlJdbcDim {
rs
=
ps
.
executeQuery
();
rs
=
ps
.
executeQuery
();
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
ps
.
close
();
}
}
return
rs
;
return
rs
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment