[Dbix-class] Oracle Auto-PK no longer works after upgrade to 0.05xxx and conversion to Schema
James FitzGibbon
jfitzgibbon at primustel.ca
Wed Mar 8 21:43:23 CET 2006
I can't find any reference to this on the PK::Auto page. In fact, the
documentation seems to point the other way:
"load the appropriate one for your database, e.g. PK::Auto::SQLite, in your
table classes"
"for example, if you have different databases and need to determine the
appropriate PK::Auto class at runtime"
unixbeard wrote Class::DBI::BaseDSN, which tried to do this, but I'm not
sure if it's technique would be compatible with C3. It inspected the DSN,
took the DBD out, loaded Class::DBI::$DSN and then re-wrote @ISA to replace
Class::DBI::BaseDSN with Class::DBI::$DSN.
If this works in C3, it would require calling Class::C3::reinitialize. I
think it's this manipulation of @ISA at runtime that is screwing me up. I
did a test with my problematic code, having SPE::DBIx::Class load the
PK::Auto::Oracle component at compile time and commenting out my load a
runtime bits. Now, the correct insert method is called.
I just realized that I'm still using C3 0.09, so I'm going to upgrade to
0.11 and see if that fixes things.
-----Original Message-----
From: dbix-class-bounces at lists.rawmode.org
[mailto:dbix-class-bounces at lists.rawmode.org] On Behalf Of Christopher H.
Laco
Sent: Wednesday, March 08, 2006 3:19 PM
To: dbix-class at lists.rawmode.org
Subject: Re: [Dbix-class] Oracle Auto-PK no longer works after upgrade to
0.05xxx and conversion to Schema
James FitzGibbon wrote:
> I'm not sure what I've managed to do here, but the exercise of upgrading
> from 0.04xxx to 0.05007 and converting from DB to Schema has stopped my
[...]
I think the good news is, you won't need this hack for much longer right?
SPE::DBIx::Class::Schema
- is-a DBIx::Class::Schema
- loads either PK::Auto::Oracle or PK::Auto::Pg at runtime
I'm pretty sure -current has PK:: autoloading depending on the db you're
using...
Of course, I could be making this all up in my head, which is currently
plugged into the Matrix.
-=Chris
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006
--
----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en français de ce message, veuillez voir
http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------
More information about the Dbix-class
mailing list