PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject_FormBuilder » Bug #2979

0 as primary key may cause unwanted insert

Details

Submitted2004-12-16 18:54 UTC
Fromm_c_ at gmx dot net
Assignedjustinpatrin
StatusClosed
PackageDB_DataObject_FormBuilder
PHP Version4.3.8
OSWindows
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