Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 73936 invoked by uid 500); 25 Mar 2002 16:22:09 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 73925 invoked from network); 25 Mar 2002 16:22:08 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Cocoon2: couldn't make nested queries work for ESQL in XSP. Date: Mon, 25 Mar 2002 11:16:55 -0500 Message-ID: <937B9574F4A2A344812CB180F5B5D25E18A7EF@corpmail.eduprise.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cocoon2: couldn't make nested queries work for ESQL in XSP. Thread-Index: AcHUEc6LQXDyNyUgSFCvSfGKEBNNSQABoudA From: "Marty McClelland" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I've done a number of nested queries in C1.8.2 and as far as I know the approach is the same in C2. Here is an example: select Distinct Contribute.Centity_id, Contribute.role FROM Contribute , Collection_resources where Collection_resources.Collection_id=3DcollectionID = and Collection_resources.rid=3DContribute.rid SQL error - contact the ilumina administrator =20 select count(distinct Contribute.rid) from Contribute, Collection_resources where centity_id=3D and Contribute.rid=3DCollection_resources.rid and Collection_resources.Collection_id=3DcollectionID select first_name, last_name from Centity where centity_id=3D , marty > -----Original Message----- > From: Argyn Kuketayev [mailto:Argyn.Kuketayev@plateau.com]=20 > Sent: Monday, March 25, 2002 10:34 AM > To: 'cocoon-users@xml.apache.org' > Subject: Cocoon2: couldn't make nested queries work for ESQL in XSP. >=20 >=20 > I've to make a report on the table M, then for each row I=20 > need to show corresponding rows from tables F and C. >=20 > Something like this: >=20 > > > 1 >=20 > =20 > > f1 > > ... > >=20 > =20 > > c1 > > .... > > > ... > >=20 > I tried this : >=20 > l:parameter type=3D"int"> column=3D"id"/> >=20 > It didn't work with an exception:=20 >=20 > org.apache.cocoon.ProcessingException: Exception in > ServerPagesGenerator.generate(): java.lang.RuntimeException:=20 > Error executing prepared statement: select ... from f where M_ID =3D ? = : > java.sql.SQLException: ORA-01722: invalid number >=20 >=20 > Can somebody give me a WORKING and tested example of nested=20 > queries in Cocoon2? >=20 > thanks, > Argyn >=20 > --------------------------------------------------------------------- > Please check that your question has not already been answered=20 > in the FAQ before posting.=20 To unsubscribe, e-mail: For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: