[Dbix-class] Oracle Auto-PK no longer works after upgrade to0.05xxx and conversion to Schema

Christopher H. Laco claco at chrislaco.com
Wed Mar 8 22:38:17 CET 2006


James FitzGibbon wrote:
> Yep, it was the version of C3.  Upgrading to 0.11 fixed it.  Or at, least,
> it now breaks further on, but that's probably an artifact of my conversion
> from DB to Schema. 
> 
> However, the version requirement is not in the DBIC code:
> 
> package DBIx::Class::Componentised;
> use Class::C3;
> 
> ...only in Build.PL.  My module build system is driven off of RPM, so it
> gets it's version requirements from the code, not the build scripts.  It
> probably flashed a warning at me (that I missed, to be sure), but the
> install succeeded because there was no min version attacked to the
> requirement in the RPM file.
> 
> I looked at the head of PK::Auto on the -current branch.  It looks like it
> will do what I need, but I will still have to override last_insert_id and
> get_autoinc_seq in some places.  I have some tables that use UUIDs instead
> of sequences for primary keys, but the generation is done in the database,
> so DBIC::UUIDColumns doesn't work for me.  Because the function that
> populates the column is named NEXTUUID instead of NEXTVAL, I have to load a
> component that overrides both methods, changing what is looked for and what
> is selected.


Interesting. Tell me more.

I was the last to hack through UUIDColumns, and added UUIDMaker that
uses the next available uuid generator, Data::UUID, UUID,
Win32::GUIDGen, etc.

I've never seen NEXTVAL... and I'll assume NEXTUUID is a db level
function....




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060308/2f820c80/attachment.pgp 


More information about the Dbix-class mailing list