补充测试以及测试中发现的MySqlParser的问题

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@84 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-14 15:46:16 +00:00
parent 0125b38d8d
commit 6090353994
5 changed files with 120 additions and 1 deletions
@@ -91,4 +91,18 @@ public class MockExecuteTest extends TestCase {
stmt.close();
conn.close();
}
public void test_6() throws Exception {
Connection conn = DriverManager.getConnection("jdbc:mock:");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT false FROM DUAL");
Assert.assertTrue(rs.next());
Assert.assertEquals(false, rs.getBoolean(1));
rs.close();
stmt.close();
conn.close();
}
}