metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hosur Narahari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METAMODEL-126) Issue using select all (*)
Date Fri, 27 Mar 2015 06:32:52 GMT

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

Hosur Narahari commented on METAMODEL-126:
------------------------------------------

Thanks for explaining the procedure. Got this working now.

> Issue using select all (*)
> --------------------------
>
>                 Key: METAMODEL-126
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-126
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Hosur Narahari
>
> I was writing a query like this.
> Query query = new Query().from("<table_name>").select("*");
> It throws MetaModelException : All select items ('*') not determinable with from item:
<table_name>
> Then I used as below : 
> MutableTable table = new MutableTable("<table_name>");
> Query query = new Query().from(table).select(*);
> It throws error saying Error in SQL syntax and when I printed the query it is "FROM <table_name>".
> Am I missing something and using it wrong.
> P.S. : When I add all the columns in the table before constructing query it works.
>  table.addColumn(new MutableColumn("<column1>"); etc.



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

Mime
View raw message