Problem with serial type in PostgreSQL database
Posted: 15.09.2006, 07:32
Hello,
I have folloving problem: using Ztable + Delphi 7 + PostgreSQL 8.1.3
table have id_art serial type, reguired is false, it is not a key
when I try to post to table receive message cannot insert null in id_art
But if I insert first record by hand (INSERT ....), after than everithing work
fine and I can post new records and id_art automaticali get next value.
Can anyone help with this problem? Thanks in advance.
I have folloving problem: using Ztable + Delphi 7 + PostgreSQL 8.1.3
table have id_art serial type, reguired is false, it is not a key
when I try to post to table receive message cannot insert null in id_art
But if I insert first record by hand (INSERT ....), after than everithing work
fine and I can post new records and id_art automaticali get next value.
Can anyone help with this problem? Thanks in advance.