![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Forgive me if this is not a bug. But I have a problem with a rule on a table which has a column with a sequence. .... Now if I play dumb with PG and use this rule instead: CREATE RULE albed_setalb_rl AS ON INSERT TO album DO INSERT INTO album_edit_tst (alb_id,ed_ref,isbn,flags) VALUES (NEW.id,'',NEW.id,NEW.id); (I place the "id" value in 3 columns) I get this result: record in "album": id=8230, ... record in "album_edit_tst": alb_id=8231,isbn=8232,flags=8233 Now my questions are: - Is this an expected behavior ? |
|
- How can I bypass this problem and ensure that I use the correct value, and that it's not incremented once more ? |
#3
| |||
| |||
|
|
On Sat, 2004-07-31 at 23:57, Marc Boucher wrote: Now my questions are: - Is this an expected behavior ? I couldn't answer that. |
![]() |
| Thread Tools | |
| Display Modes | |
| |