mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser. issue #1898
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.alibaba.druid.bvt.bug;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Created by wenshao on 14/08/2017.
|
||||
*/
|
||||
public class Issue1898 extends TestCase {
|
||||
public void test_for_issue() throws Exception {
|
||||
String sql = "SELECT 0 bSomething";
|
||||
String formatted = com.alibaba.druid.sql.SQLUtils.format(sql, "mysql");
|
||||
// assertNotEquals("SELECT b'Something'", formatted);
|
||||
assertEquals("SELECT 0 AS bSomething", formatted);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user