Edit report at http://bugs.php.net/bug.php?id=54426&edit=1

 ID:                 54426
 Comment by:         mapopa at gmail dot com
 Reported by:        jiri at cincura dot net
 Summary:            Wrong NULL checks
 Status:             Open
 Type:               Bug
 Package:            InterBase related
 Operating System:   All
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Test to reproduce the bug :



1.Create a table with not null field 

2.Add trigger filling this field before insert 

3.Try from PHP insert null value. 





Current version(s) are failing.


Previous Comments:
------------------------------------------------------------------------
[2011-04-14 12:32:51] mapopa at gmail dot com

Here is the patch 

http://paste.ubuntu.com/593941/



in case the one bellow doesn't download

I will create one for 5.3.x trunk branch

------------------------------------------------------------------------
[2011-03-30 18:46:13] jiri at cincura dot net

Description:
------------
ibase_query.c contains on line 676 checks for NULL. But this is wrong,
as the value could be provided in trigger etc.



Simply removing this check should be enough and everything will be
working fine.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54426&edit=1

Reply via email to