mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql parser refactor
This commit is contained in:
@@ -18,6 +18,10 @@ public class DistinctTest extends TestCase {
|
||||
Assert.assertEquals("SELECT COUNT(DISTINCT *)\nFROM t", SQLUtils.format(sql, JdbcUtils.ORACLE));
|
||||
}
|
||||
|
||||
public void test_oracle_unique() throws Exception {
|
||||
Assert.assertEquals("SELECT COUNT(UNIQUE *)\nFROM t", SQLUtils.format("select count(unique *) from t", JdbcUtils.ORACLE));
|
||||
}
|
||||
|
||||
public void test_postgres() throws Exception {
|
||||
Assert.assertEquals("SELECT COUNT(DISTINCT *)\nFROM t", SQLUtils.format(sql, JdbcUtils.POSTGRESQL));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user