mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
format code
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@527 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -25,11 +25,11 @@ public class TestOnlineSQLTest3 extends TestCase {
|
||||
conn = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void test_0 () throws Exception {
|
||||
|
||||
public void test_0() throws Exception {
|
||||
String sql = "SELECT * FROM m_sql_const";
|
||||
Statement stmt = conn.createStatement();
|
||||
|
||||
|
||||
ResultSet rs = stmt.executeQuery(sql);
|
||||
while (rs.next()) {
|
||||
long id = rs.getLong(1);
|
||||
@@ -37,15 +37,13 @@ public class TestOnlineSQLTest3 extends TestCase {
|
||||
handle(id, value);
|
||||
}
|
||||
rs.close();
|
||||
|
||||
|
||||
stmt.close();
|
||||
}
|
||||
|
||||
|
||||
void handle(long id, String value) {
|
||||
String sql = value.toString();
|
||||
|
||||
|
||||
|
||||
|
||||
System.out.println(sql);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user