asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murtadha Hubail (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ASTERIXDB-2050) Enforce a Semicolon After Each SQL++ Statement
Date Mon, 21 Aug 2017 10:04:00 GMT
Murtadha Hubail created ASTERIXDB-2050:
------------------------------------------

             Summary: Enforce a Semicolon After Each SQL++ Statement
                 Key: ASTERIXDB-2050
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2050
             Project: Apache AsterixDB
          Issue Type: Improvement
          Components: SQL - Translator SQL++
            Reporter: Murtadha Hubail
            Assignee: Murtadha Hubail


Currently, only queries must be followed by a semicolon in SQL++ and it's optional to follow
DDLs/DMLs with one. While this gives some flexibly to the user, it could lead to many unintentional
errors and ambiguity.

For example, when this is executed:
{code:java}
create dataverse x + 1 + 1;
{code}

The dataverse 'x' will be created and the following will be returned:
{code:java}
2
{code}

The proposed solution to eliminate this ambiguity is to enforce a semicolon after every SQL++
statement.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message