druid SQLServerStatementParser does not throw ParseException for statement containing date_format function

dgenwo3n  于 2022-10-21  发布在  Druid
关注(0)|答案(3)|浏览(139)

Hi

The statement below does not throw ParseException when going through SQLServerStatementParser:

select
            TOP 10
            *
        from (
            select
                DISTINCT
                DATE_FORMAT( col1, '%Y%m%d' ) AS col1
            from table1
        ) xx
6kkfgxo0

6kkfgxo02#

Tested with Druid version 1.0.16
against sql server 2012

ztyzrc3y

ztyzrc3y3#

apologies I pressed the wrong button.

相关问题