You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Scott Fan (JIRA)" <ji...@apache.org> on 2018/10/12 01:07:00 UTC
[jira] [Updated] (KYLIN-3620) "--" should not be a comment marker
use between single quotes in SQL
[ https://issues.apache.org/jira/browse/KYLIN-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Fan updated KYLIN-3620:
-----------------------------
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
was:
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 mean tell me that I can use a \ as escape, but I can't change the SQL generated by BI tools like tableau.
Thanks
> "--" should not be a comment marker use between single quotes in SQL
> --------------------------------------------------------------------
>
> Key: KYLIN-3620
> URL: https://issues.apache.org/jira/browse/KYLIN-3620
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v2.4.1
> Reporter: Scott Fan
> Priority: Major
>
> 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
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)