db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ron piterman <ron.piter...@gmx.net>
Subject Re: Criteria parses to "SELECT FROM .."
Date Wed, 14 Jul 2004 08:16:56 GMT
The "*" is missing in the parsed SQL, so I get an SQL error :(


Andras Balogh wrote:

> Hello,
> Can you explain what is wrong?
> I see no error in this code ... you will get back a List of
> Objects of type XXX if you are in XXXPeer.
>
> Best regards,
> Andras.
>
>
> ron piterman wrote:
>
>> Hi,
>> I use the following code to query (inside the Peer class, so the 
>> constants are class constants...)
>>          Criteria c = new Criteria();
>>        c.add(CATEGORIES_ID, id);
>>        c.add(LANGUAGE_ID, language.getLanguagesId());
>>        try {
>>            System.out.println(createQueryString(c));
>>            return  doSelect(c);
>>        }
>>        catch (TorqueException ex) {
>>            ex.printStackTrace();
>>            return EMPTY;
>>        }
>>    }
>>   And it parses to :
>>
>> SELECT  FROM categories_description WHERE 
>> categories_description.CATEGORIES_ID=20 AND 
>> categories_description.LANGUAGE_ID=0
>>
>> Anyone a clue?
>>
>> Cheers,
>> Ron
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: torque-user-help@db.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message