[ 
https://issues.apache.org/jira/browse/CALCITE-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15265466#comment-15265466
 ] 

Julian Hyde commented on CALCITE-1223:
--------------------------------------

sqlline bugs should be filed here: https://github.com/julianhyde/sqlline/issues

The sqlline code does treat lines starting with '#' and '--' and comments. The 
{{isComment}} method. I haven't checked whether it works.

Also, consistent with 
[Oracle|https://docs.oracle.com/cd/B12037_01/server.101/b10759/sql_elements006.htm],
 [MySQL|http://dev.mysql.com/doc/refman/5.7/en/comments.html] and 
[MSSQL|https://msdn.microsoft.com/en-us/library/ms181627.aspx], Calcite's SQL 
parser treats '--' to the end of the line as a comment.

> sqlline doesn't treat lines beginning with -- as comments
> ---------------------------------------------------------
>
>                 Key: CALCITE-1223
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1223
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: Julian Hyde
>            Priority: Minor
>
> Not sure if this is a bug or done on purpose, but if you execute a script 
> with sqlline, it doesn't interprets lines beginning with -- as comments. 
> Should it? I believe that's more expected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to