Re: [CDBI] Re: Sequences in Class::DBI?
"Rod McChesney" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
> FYI, that's already in Class::DBI::Oracle. Right, that's where I pulled it from. IIRC that module does some other data-dictionary stuff that I did not want, which is why I didn't use it. > 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. Cool, I didn't know about that call. Thx, Rod On 4/27/06, Edward J. Sabol <sabol-2oVx0MVsMgiP/[email protected]> wrote: > 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 > > _______________________________________________ > ClassDBI mailing list > ClassDBI-Ra3b/[email protected] > http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi >