[Zope] how to get details of sql.error ?

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Fri, 10 Dec 1999 13:13:28 +1100


>>> Christopher Petrilli wrote
> On 12/9/99 3:15 PM, Nitin Borwankar at nitin@borwankar.com wrote:
> > I am getting a vanilla sql.error message from Zope when testing a ZSQL
> > method
> > The ZSQL method is a single insert statement without any dtml-try/except
> > wrapper.
> > How do I get Zope to be a little more verbose about waht the problem is
> 
> What DA are you using, this is up to the DA to throw genearlly.

However, most don't - I've patched both dcOracle and dcSybase to throw
the exception with a third arg, the sql command. I'm pretty sure patches
are in the Collector.

Anthony
-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.