[CDBI] Re: Sequences in Class::DBI?

Edward J. Sabol sabol at alderaan.gsfc.nasa.gov
Thu Apr 27 19:28:25 BST 2006


Rod McChesney wrote:
> Note that you can also do this generically for Oracle in a your CDBI base
> class:
>
> __PACKAGE__-> set_sql(Nextval => 'SELECT %s.NEXTVAL from DUAL');

FYI, that's already in Class::DBI::Oracle. If you use that as your base
class, then it's done for you automatically and you can then use CDBI's
_next_in_sequence() method.

Hope this helps,
Ed




More information about the ClassDBI mailing list