PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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