db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Torque Peer object produces bogus SQL statements
Date Wed, 14 May 2003 10:49:09 GMT
Hi all,

I have the following piece of code:

criteria.addIn("policytype_id", policytypeIds);
PolicytypePeer.doSelect(criteria);

policytypeIds is an array of ints. The following SQL code is generated, 
which throws a SQLException (ignore the missing SELECT and FROM):

SELECT policytype.POLICYTYPE_ID, policytype.SERIAL, policytype.NAME, 
policytype.DESCRIPTION FROM policytype,  WHERE .policytype_id IN (15,16)

This is major breakage - anyone know what is going on?

I am using torque v3.0.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Mime
View raw message