postgres sequence problems
Posted: 29 Oct 2007, 20:51
Getting this error when I submit a new bug:
currval of sequence "mantis_email_table_id_seq" is not yet defined in this session for the query:
I can run an insert from the psql command line and it works fine. I tried nextval but even though the insert worked the whole process didn't work because the tie in inserts like the text field custom field inserts didn't find the correct id number because they are calling currval as well so the keys are off.
I'm on Redhat SE 4, postres 8.2.4, PHP Version => 5.2.3, mantis version 1.1.0a4
The same version works great on mysql. I'm under constraints to use postgres. Any help would be greatly appreciated.
currval of sequence "mantis_email_table_id_seq" is not yet defined in this session for the query:
I can run an insert from the psql command line and it works fine. I tried nextval but even though the insert worked the whole process didn't work because the tie in inserts like the text field custom field inserts didn't find the correct id number because they are calling currval as well so the keys are off.
I'm on Redhat SE 4, postres 8.2.4, PHP Version => 5.2.3, mantis version 1.1.0a4
The same version works great on mysql. I'm under constraints to use postgres. Any help would be greatly appreciated.