mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
ibatis support
This commit is contained in:
@@ -8,7 +8,7 @@ import junit.framework.TestCase;
|
||||
public class OracleFormatTest2 extends TestCase {
|
||||
|
||||
public void test_formatOracle() throws Exception {
|
||||
String text = "SELECT count(*) FROM T1, (SELECT DISTINCT parent_id AS parentId FROM T2 a1 WHERE FSEQ IN (?) AND NOT order_from = ? AND status IN (?) ) b WHERE ID = b.parentId AND GMT_CREATE >= to_date(?, ?) AND GMT_CREATE <= to_date(?, ?)";
|
||||
String text = "UPDATE MEMBER SET GMT_MODIFIED = SYSDATE, STATUS = ?, email = CASE WHEN status = ? THEN rtrim(email, ? || id || ?) ELSE email END WHERE ID IN (?) AND STATUS <> ?";
|
||||
|
||||
String formatedText = SQLUtils.format(text, JdbcUtils.ORACLE);
|
||||
System.out.println(formatedText);
|
||||
|
||||
Reference in New Issue
Block a user