Subject: | Generated sequence name is incorrect for Oracle |
Date: | Wed, 13 Nov 2013 14:14:40 -0700 |
To: | bug-DBIx-Class-Schema-Loader [...] rt.cpan.org |
From: | David Love <dlove [...] us.ntt.net> |
The generated sequence name for Oracle is always set to the last character in the actual sequence name. The regex checks for schema.sequence, then splits the portion after the period (i.e., the sequence) into two parts and uses the last portion as the sequence name.
So given a trigger with sequence “myschema.mysequence”, the code generates:
sequence => “e”
DBIx::Class::Schema::Loader 0.07037
perl -v: This is perl 5, version 12, subversion 5 (v5.12.5) built for sun4-solaris-64-ld
uname -a: SunOS gnomedev1.it.ntta.com 5.10 Generic_147440-15 sun4v sparc SUNW,SPARC-Enterprise-T5220
Replicated in OSX/Mavericks: Darwin elrond.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64