mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for odps sql format. issue #1329
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.alibaba.druid.bvt.sql.odps;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.druid.sql.SQLUtils;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class OdpsFormatCommentTest30 extends TestCase {
|
||||
public void test_drop_function() throws Exception {
|
||||
String sql = "--啊实打实大啊实打实大"
|
||||
+ "\nCREATE TABLE xxx ("
|
||||
+ "\n aa STRING,"
|
||||
+ "\n asdasd STRING,"
|
||||
+ "\n asasd STRING"
|
||||
+ "\n);";
|
||||
Assert.assertEquals("--啊实打实大啊实打实大"
|
||||
+ "\nCREATE TABLE xxx ("
|
||||
+ "\n\taa STRING,"
|
||||
+ "\n\tasdasd STRING,"
|
||||
+ "\n\tasasd STRING"
|
||||
+ "\n);", SQLUtils.formatOdps(sql));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user