in reply to DBIx::Class and Oracle sequences
SQL Code after 5 seconds of searching the WWW:
INSERT INTO suppliers (supplier_id, supplier_name) VALUES (supplier_seq.nextval, 'BigCompany');
Now you just have to tell DBIx::Class to pass the sequence name and ".nextval" unchanged to the database whenever you insert a new row. I'm too lazy to read the docs on how to do it.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBIx::Class and Oracle sequences
by Anonymous Monk on May 11, 2009 at 21:11 UTC |