Set the system log & the sql log to "DEBUG". this will dump real sql statements to your log files which then can used to debug them externally.
-- heiko braun, fork unstable media http://www.unstablemedia.com On Fri, 19 Oct 2001, Scott Eade wrote: > Criteria criteria = new Criteria(); > ... > System.out.println(criteria); > > ----- Original Message ----- > From: "Geoff Fortytwo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, October 19, 2001 9:55 AM > Subject: torque Criteria sql > > > > For debugging purposes, is there any way I can take a criteria object and > > find out what sql it's going to generate when I use it? If I set up a > > criteria object incorrectly I can't figure out a way to find out what my > > query is and whether there's a problem with it. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
