PEAR is archived and read-only

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

Home » Database » MDB2 » Bug #8653

violation while inserting record

Details

Submitted2006-09-07 13:41 UTC
Frompascal at tweakers dot net
StatusWont fix
PackageMDB2
PHP Version5.1.5
OSFC4
Roadmaps(Not assigned)

Comments

[2006-09-07 13:41 UTC] pascal at tweakers dot net

Description:
------------
When insert a empty value in a NOT NULL field with a DEFAULT value i'm getting a violation that the field does not accept empty values.

The normal way should be that the default value should be inserted :) I guess MDB2 is missing a check for a default value.

Example: field int(11) NOT NULL Default: 0

If inserted value is empty it should insert the 0.

Now, the record won't be inserted. Manually checked with phpmyadmin.