cvs: pear /MDB2/MDB2/Driver/Reverse ibase.php

From: Date: Fri, 14 Oct 2005 21:57:09 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Reverse ibase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35543@lists.php.net to get a copy of this message
quipo Fri Oct 14 17:57:09 2005 EDT Modified files: /pear/MDB2/MDB2/Driver/Reverse ibase.php Log: return "0" as default value for integer NOT NULL fields with no default value (I'm not sure this is a good thing) http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Reverse/ibase.php?r1=1.19&r2=1.20&ty=u Index: pear/MDB2/MDB2/Driver/Reverse/ibase.php diff -u pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.19 pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.20 --- pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.19 Wed Oct 12 13:06:59 2005 +++ pear/MDB2/MDB2/Driver/Reverse/ibase.php Fri Oct 14 17:57:07 2005 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.19 2005/10/12 17:06:59 quipo Exp $ +// $Id: ibase.php,v 1.20 2005/10/14 21:57:07 quipo Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -185,7 +185,7 @@ $notnull = !empty($column['null_flag']); $default = $column['default_source']; if (is_null($default) && $notnull) { - $default = ''; + $default = ($types[0] == 'integer') ? 0 : ''; } $definition = array(); foreach ($types as $key => $type) {

« previous php.pear.cvs (#35543) next »