add testcase & bug fixed

This commit is contained in:
wenshao
2012-08-25 14:22:51 +08:00
parent 2fc2a81a62
commit 66f7a4818f
4 changed files with 83 additions and 22 deletions
@@ -60,6 +60,19 @@ public class DumpTest extends TestCase {
}
public void testToString() throws Exception {
{
String sql = "select ?";
Connection conn = dataSource.getConnection();
PreparedStatement stmt = conn.prepareStatement(sql);
stmt.setString(1, "xxx");
ResultSet rs = stmt.executeQuery();
rs.next();
rs.close();
conn.close();
}
String sql = "select ?, ?";
Connection conn = dataSource.getConnection();