Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false formatting "select 0 bSomething" #1898

Open
kaiwangchen opened this issue Aug 11, 2017 · 0 comments
Open

false formatting "select 0 bSomething" #1898

kaiwangchen opened this issue Aug 11, 2017 · 0 comments
Labels

Comments

@kaiwangchen
Copy link

        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);
@kaiwangchen kaiwangchen changed the title false parsing "select 0 bSomething" false formatting "select 0 bSomething" Aug 11, 2017
@wenshao wenshao added the Bug label Aug 11, 2017
wenshao added a commit that referenced this issue Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants