"Diethelm Guallar, Gonzalo" <[EMAIL PROTECTED]> writes:

> I have been using multiple DBs with Turbine for a while,
> with no problems. Now they stopped working... This is
> the relevant piece of my TR.props:
> 
>   #### Default database
>   database.default.driver=org.gjt.mm.mysql.Driver
>   database.default.url=jdbc:mysql://localhost:3306/turbine
>   database.default.username=turbine
>   database.default.password=turbine
> 
>   #### Oracle test database
>   database.oracle.driver=oracle.jdbc.driver.OracleDriver
>   database.oracle.url=jdbc:oracle:thin:@pdcmidas:1521:oracledb
>   database.oracle.username=gonzo
>   database.oracle.password=gonzo
> 
> 
> I define a Criteria like this:
> 
>         Criteria criteria = new Criteria(dbName_);
> 
> and dbName_ is "oracle" (I'm sure, I print it right before
> defining the criteria, as you can see in the log). When I
> do a doSelect() with that criteria, the log shows:
> 
> [Thu Feb 01 11:28:40 GMT-04:00 2001] -- INFO -- CartolaTx::execute(oracle)
> [Thu Feb 01 11:28:40 GMT-04:00 2001] -- ERROR -- 
>       Exception:  java.sql.SQLException: General error: Table
> 'turbine.cartola' doesn't exist
>       Stack Trace follows:
>       java.sql.SQLException: General error: Table 'turbine.cartola'
> doesn't exist

Gonzalo, I gave Criteria and BasePeer a look.  From what you post, it
almost appears that Criteria.dbName is getting set to "default".  From
the Criteria CVS source, I don't see how this could be happening.
Perhaps something that uses this value as a hash key has a problem?
-- 

Daniel Rall <[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to