Home » Database » DB_DataObject_FormBuilder » Bug #2979
0 as primary key may cause unwanted insert
Details
| Submitted | 2004-12-16 18:54 UTC |
|---|---|
| From | m_c_ at gmx dot net |
| Assigned | justinpatrin |
| Status | Closed |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.8 |
| OS | Windows |
| Roadmaps | (Not assigned) |
Comments
[2004-12-16 18:54 UTC] m_c_ at gmx dot net
Description:
------------
Hey, i'm sorry i don't have a lot of time to describe in detail what's wrong... Just in a few words:
As far as I know, in the form procession, formbuilder decides whether to use an insert or update statement by determining if the primary key is set or not.
In my application i just run over this problem: when editing a record with primary key set to 0, there happens an insert into the database, although it should actually be an update.
Hope that helps...
Christof