cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2][Patch] SQLTransformer gives an DriverNotCapableException Exc eption when used with Interbase Interclient 1.6 JDBC Drivers
Date Tue, 24 Jul 2001 11:28:21 GMT
Ignacio,

Can you re-work your patch such that you pick up a flag from sitemap.xmap or cocoon.xconf
to
choose whether to use the new prepareStatement with 3 parameters or to use the old one which
takes
in just one parameter. This way people can use whichever they want. 

Another option is to catch the DNCE and then switch to the old method, but this will slow
down
your access a bit. So i'd prefer a flag as mentioned above.

Please let us know if you have some time to rework your patch.

Thanks,
dims

--- "Ignacio J. Ortega" <nacho@siapi.es> wrote:
> Hola a todos:
> 
> The patch attached solves an issue related to the Interclient Interbase
> JDBC Drivers v1.6, that it's not enterely JDBC 2 capable ( i Know I Know
> but for ib 5.6 there arent better JDBC Drivers available AFAIK :)..
> 
> Concretely does not support the following method signature ( amongst a
> bunch of others that till now did affect to C2) used on SQLTransformer:
> 
> public PreparedStatement prepareStatement(String sql,int
> resultSetType,int resultSetConcurrency)
> 	throws SQLException
> 
> public CallableStatement prepareCall(String sql,int resultSetType,int
> resultSetConcurrency)
> 	throws SQLException
> 
> that methods give the DNCE mentioned in the subject..
> 
> AFAIK the patch is harmless because the PreparedStatement and
> CallableStatement are obtained with the most backward compatible Type
> and Concurrency posible.., 
> 
> Thanks..
> 
> Saludos ,
> Ignacio J. Ortega
> 

> ATTACHMENT part 2 application/octet-stream name=SQLTransformer.java.diff
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message