Bug #15276 [Opn->Fbk]: Upgrading setting NOT NULL column default value to NULL
| From: | ifeghali@php.net | Date: | Sun, 22 Feb 2009 14:41:52 +0000 |
| Subject: | Bug #15276 [Opn->Fbk]: Upgrading setting NOT NULL column default value to NULL | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-57@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15276&edit=1
ID: 15276
Updated by: ifeghali@php.net
Reported By: jan at horde dot org
Summary: Upgrading setting NOT NULL column default value to
NULL
-Status: Open
+Status: Feedback
Type: Bug
Package: MDB2_Schema
Package Version: CVS
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Feedback</span>
</div>
Hello Jan,
If there is no "default" in the new field definition, shouldn't we
assume the field isn't "notnull" also ?
Say Field A is NOT NULL DEFAULT "FOO". It would make no sense to remove
the <default> tag from the new XML schema but leave <notnull> = 1.
What do you think ?
Previous Comments:
------------------------------------------------------------------------
[2008-12-09 09:58:00] yunosh
Description:
------------
If during a field update the default value is no longer set, the
default value is set to NULL. When this happens, a check is missing
whether this is allowed at all. The attached patch fixes this.
Alternatively this check might happen where the actual update query is
build.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15276&edit=1