Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3620

"--" should not be a comment marker use between single quotes in SQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v2.4.1
    • v2.6.0
    • Query Engine
    • None

    Description

      Hi,

      When I exec a SQL like below, there was an error.

      SELECT * FROM TABLEA WHERE NAME='Jason--Arthur'

      Seems like KYLIN use  the – as a comment marker.

      It should not be that between single quotes, I think.
       
      Even I send a REST POST contains SQL like that, or do an ODBC query, there was an error too.

      You may tell me that I can use a \ as escape, but I can't change the SQL generated by BI tools like tableau.  

      Thanks
       

      Attachments

        Issue Links

          Activity

            People

              caolijun1166 Lijun Cao
              fandayrockworld Scott Fan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: