Hosur Narahari created METAMODEL-126:
----------------------------------------
Summary: 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)