svn: /pear/packages/MDB2/trunk/tests/ MDB2_datatype_testcase.php

From: Date: Sun, 06 Mar 2011 12:09:14 +0000
Subject: svn: /pear/packages/MDB2/trunk/tests/ MDB2_datatype_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-61351@lists.php.net to get a copy of this message
quipo Sun, 06 Mar 2011 12:09:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308958 Log: explicit NULL default value Changed paths: U pear/packages/MDB2/trunk/tests/MDB2_datatype_testcase.php Modified: pear/packages/MDB2/trunk/tests/MDB2_datatype_testcase.php =================================================================== --- pear/packages/MDB2/trunk/tests/MDB2_datatype_testcase.php 2011-03-06 11:51:08 UTC (rev 308957) +++ pear/packages/MDB2/trunk/tests/MDB2_datatype_testcase.php 2011-03-06 12:09:14 UTC (rev 308958) @@ -118,7 +118,7 @@ * fields. Always bull in this case, as this custom test * type is not textual. */ -function nativetype_test_callback(&$db, $aFields) +function nativetype_test_callback($db, $aFields) { // Prepare the type array $aType = array(); @@ -701,7 +701,7 @@ $field = array('type' => 'integer'); $result = $this->db->datatype->getDeclaration($type, $name, $field); $actual_type = $this->db->phptype == 'sqlite' ? 'INTEGER' : 'INT'; - $default = $this->db->phptype == 'mssql' ? ' NULL' : ''; + $default = $this->db->phptype == 'mssql' ? ' NULL' : ' DEFAULT NULL'; $this->assertEquals('column '.$actual_type.$default, $result, 'getDeclaration'); // Test with a custom datatype

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