db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: Error with MySQL: Callable statements not supported
Date Mon, 06 Oct 2003 07:25:58 GMT
hi ron,

i commited a fix to solve this problem base on thomas' suggestion.

jakob

Am Sat, 4 Oct 2003 22:22:14 -0400 hat Ron Gallagher 
<rongallagher@bellsouth.net> geschrieben:

> Jakob --
>
> Since I caused the problem, I figure I should fix it.  This problem is 
> fixed
> with the attached update to StatementsForClassImpl.
>
> Ron Gallagher
> Atlanta, GA
> rongallagher@bellsouth.net
>
>
>
>
> -----Original Message-----
> From: Jakob Braeuchi [mailto:jbraeuchi@gmx.ch]
> Sent: Saturday, October 04, 2003 2:14 PM
> To: OJB Developers List
> Subject: Error with MySQL: Callable statements not supported
>
>
> hi all,
>
> i recently noticed that my testcases no longer work with mysql because
> callable-statments are being used in store:
>
>
> java.sql.SQLException: Callable statments not supported.
>     at com.mysql.jdbc.Connection.prepareCall(Connection.java:1201)
>     at com.mysql.jdbc.Connection.prepareCall(Connection.java:1221)
>     at 
> com.p6spy.engine.spy.P6Connection.prepareCall(P6Connection.java:179)
>     at
> org.apache.ojb.broker.accesslayer.StatementsForClassImpl.prepareStatement(St
> atementsForClassImpl.java:306)
>     at
> org.apache.ojb.broker.accesslayer.StatementsForClassImpl.getUpdateStmt(State
> mentsForClassImpl.java:239)
>     at
> org.apache.ojb.broker.accesslayer.StatementManager.getUpdateStatement(Statem
> entManager.java:744)
>     at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeUpdate(JdbcAccessImp
> l.java:528)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBroker
> Impl.java:2043)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl
> .java:1943)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl
> .java:661)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeReferences(Persistence
> BrokerImpl.java:688)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.storeToDb(PersistenceBroker
> Impl.java:1982)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl
> .java:1943)
>     at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.store(PersistenceBrokerImpl
> .java:661)
>     at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersi
> stenceBroker.java:165)
>     at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.store(DelegatingPersi
> stenceBroker.java:165)
>
> this problem comes imo from this patch to StatementsForClassImpl
>  * @version $Id: StatementsForClassImpl.java,v 1.17 2003/09/09 19:02:31
> thma Exp $
>
> is there a workaround for mysql ?
>
> jakob
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message