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

ASF GitHub Bot commented on METAMODEL-138:
------------------------------------------

GitHub user ardlema opened a pull request:

    https://github.com/apache/metamodel/pull/22

    Allow empty spaces before AS keyword. Fixes #METAMODEL-138

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ardlema/metamodel MM-138-as-empty-spaces

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/metamodel/pull/22.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22
    
----
commit 61ea64ae007fc4e51967b15e3b6c241f4ff37a93
Author: Alberto Rodriguez <[email protected]>
Date:   2015-05-05T11:01:48Z

    Allow empty spaces before AS keyword. Fixes #METAMODEL-138

----


> Not capable of parsing queries with more than 2 empty spaces before "AS"
> ------------------------------------------------------------------------
>
>                 Key: METAMODEL-138
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-138
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Alberto
>            Priority: Minor
>
> Adding more than 2 spaces before the "AS" keyword prevent the QueryParser to 
> parse the query properly. This test does not pass:
> public void testSelectEmptySpacesBeforeAs() throws Exception {
>         Query q = MetaModelHelper.parseQuery(dc, "SELECT tbl.foo     AS alias 
> FROM sch.tbl");
>         assertEquals("SELECT tbl.foo AS alias FROM sch.tbl", q.toSql());
>     }
> We have found out that the parsing problem starts when you add more than 2 
> empty spaces before the "AS" keyword.



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

Reply via email to