On 3/2/06 10:48 PM, Ron Savage wrote:
> I'm writing auto_retrieve_primary_key_column_names in this module, and the
> problem is the call $schema  = $self->select_schema($db).
> 
> Oracle needs to to return uc $username.

You can do whatever you want in Rose::DB::Object::Metadata::Auto::Oracle.
Just do what Oracle needs.  Don't even call select_schema() if you know
you'll always need to pass uc $username.

> So does this mean Rose::DB::Oracle should override supports_schema to return
> 1, and then Rose::DB::Object::Metadata::Auto::Oracle should override
> select_schema to do what I want?

Well, Oracle really doesn't support "schemas" per se, right?  It just so
happens that you can think of the username as doing the same thing as the
schema.  I dunno, I'm torn here.  But either way, it shouldn't affect what
you do in Rose::DB::Object::Metadata::Auto::Oracle.  You just have to
implement the API.  Exactly what happens inside the methods is up to you.

-John




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to