cvs: pear /DB_DataObject ChangeLog DataObject.php package.xml
| From: | Alan Knowles | Date: | Sat, 15 Nov 2003 02:46:07 +0000 |
| Subject: | cvs: pear /DB_DataObject ChangeLog DataObject.php package.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-14276@lists.php.net to get a copy of this message | ||
alan_k Fri Nov 14 21:46:07 2003 EDT
Modified files:
/pear/DB_DataObject ChangeLog DataObject.php package.xml
Log:
slight updates for 1.3 release - and package.xml updated
Index: pear/DB_DataObject/ChangeLog diff -u pear/DB_DataObject/ChangeLog:1.1 pear/DB_DataObject/ChangeLog:1.2 --- pear/DB_DataObject/ChangeLog:1.1 Tue Jul 15 23:17:36 2003 +++ pear/DB_DataObject/ChangeLog Fri Nov 14 21:46:07 2003 @@ -1,6 +1,158 @@ +2003-11-13 Thursday alan_k + + * attempt to fix bug #228 + +2003-11-09 Sunday alan_k + + * typo + * subtle warning + * add DB_DATAOBJECT_NO_OVERLOAD define, and FC/BC support for PHP5 + (including return by ref fixes) + +2003-10-28 Tuesday alan_k + + * remove raiseError on fetch with no data.. - just produces debug + warning now.. + +2003-10-25 Saturday alan_k + + * Major change to internal storage of query building store - + significantly reduces the size of objects when they are + fetched/print_r.ed - needs more testing! + * restore some checks for class include - file exists.. - its + relayed into from getLink + +2003-10-22 Wednesday alan_k + + * fix bug #133 and tidy up debuging a little + +2003-10-18 Saturday alan_k + + * fix toString() for date usage. + * raise Errors.. + * correct examples + * db_dataobject_cast support. + * prevent writing of key values for insert (autoincrement only) and + on update all the time.. - required for MSSQL support (Markus + Wolff) + +2003-10-08 Wednesday alan_k + + * tidy up debugging a little + +2003-09-25 Thursday alan_k + + * spotted typo in database() + +2003-09-23 Tuesday alan_k + + * small fixes on last update + * oops - thanks to commit emails for this one + * try and make some sense of the sequence - autoincrement logic + +2003-09-18 Thursday alan_k + + * fix bug #20 - generator on win32 thanks to sergey at nikiforov + dot net + +2003-09-16 Tuesday alan_k + + * add mssql to early check for sequences - oops missed that one - + thx Markus again.. + +2003-09-13 Saturday alan_k + + * make the link syntax as an array, the alternative first argument + for joinAdd.. - enables joins without links.ini.. + +2003-09-11 Thursday alan_k + + * experimental - on the fly setting of database fields and keys + +2003-09-10 Wednesday alan_k + + * let php warnings show on failed include - they are far more + informative that anything worth displaying. + +2003-09-09 Tuesday arnaud + + * * typo + * * add a simple batch script to execute createTables.php * update + package.xml filelist # this is done in agreement with alan ;) + * * ws + +2003-09-04 Thursday alan_k + + * native autoincrement for MsSQL (Markus Wolff) + * using case sensitive naming doesnt work - oracle likes upper - + postgres.. etc. lowercase the result name... - use default + +2003-08-27 Wednesday alan_k + + * apparently that breaks as well.. - fetchrow without the extra + param + * oracle only likes uppercase names - not the smartest of expensive + databases that one.. + * fix problem with oracle - hopefully dataobject_num is reasonably + rare. (Patrick Roos) + * show fetch timings in debug mode + * changing level 1 debugging to display queries and result times.. + - 2 now shows each fetch + * try auto updating package number (thanks to Tomas Cox) + +2003-08-26 Tuesday alan_k + + * make validate an optional dependancy... - does this work! + * sync this up for the next release for a change.. - ( Arnaud + Limbourg) + +2003-08-17 Sunday alan_k + + * adding links() to retreive the links array (Markus Wolff) + +2003-08-14 Thursday alan_k + + * future support for explain on debug + * sync up package.xml with generator changes + * CS fixes and make generator more tolerant of broken editors + (Andreas Ljunggren) + +2003-08-13 Wednesday alan_k + + * revert the null checking change - there is a big knock on effect + from this change. - staticGet relays rely on the null var + * using null is not always a great way to evaluted variable + arguments. + +2003-08-11 Monday alan_k + + * get name right :) + * making table(), keys() public, adding access to database() and + tableName() (Marcus Wolff) + +2003-08-09 Saturday alan_k + + * reducing the dependancy + +2003-08-07 Thursday alan_k + + * Properly fix the limit testing + * Improve argument testing on limit (Demian Turner) + * extra argument ot joinAdd() to allow multiple targets of same + type. (Andy Crain) + * fix the static get cache properly + +2003-07-18 Friday alan_k + + * prepping for a bugfix release + * fix NULL values when updating + 2003-07-16 Wednesday alan_k + * prepping for 1.0 release + * full generated Changelog - it would be nice if we had standard + tools to do this in pear = pear changelog :).. * fix bug with cache clearing not working with staticGet and update 2003-07-12 Saturday mj Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.151 pear/DB_DataObject/DataObject.php:1.152 --- pear/DB_DataObject/DataObject.php:1.151 Sat Nov 8 22:20:03 2003 +++ pear/DB_DataObject/DataObject.php Fri Nov 14 21:46:07 2003 @@ -20,7 +20,7 @@ * @package DB_DataObject * @category DB * - * $Id: DataObject.php,v 1.151 2003/11/09 03:20:03 alan_k Exp $ + * $Id: DataObject.php,v 1.152 2003/11/15 02:46:07 alan_k Exp $ */ /* ===================================================================================== @@ -310,7 +310,7 @@ $obj = DB_DataObject::factory(substr($class,strlen($_DB_DATAOBJECT['CONFIG']['class_prefix']))); if (PEAR::isError($obj)) { DB_DataObject::raiseError("could not autoload $class", DB_DATAOBJECT_ERROR_NOCLASS); - return $r = false; + return false; } if (!@$_DB_DATAOBJECT['CACHE'][$lclass]) { @@ -318,7 +318,7 @@ } if (!$obj->get($k,$v)) { DB_DataObject::raiseError("No Data return from get $k $v", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; + return false; } $_DB_DATAOBJECT['CACHE'][$lclass][$key] = $obj; return $_DB_DATAOBJECT['CACHE'][$lclass][$key]; @@ -1960,25 +1960,25 @@ if ($p = strpos($row,".")) { $row = substr($row,0,$p); } - return $r = $this->getLink($row,$table,$link); + return $r = &$this->getLink($row,$table,$link); } else { DB_DataObject::raiseError( "getLink: $row is not defined as a link (normally this is ok)", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; // technically a possible error condition? + return false; // technically a possible error condition? } } else { // use the old _ method if (!($p = strpos($row, '_'))) { - return $r = null; + return null; } $table = substr($row, 0, $p); - return $r = $this->getLink($row, $table); + return $r = &$this->getLink($row, $table); } } if (!isset($this->$row)) { DB_DataObject::raiseError("getLink: row not set $row", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; + return false; } // check to see if we know anything about this table.. @@ -1989,20 +1989,20 @@ DB_DataObject::raiseError( "getLink:Could not find class for row $row, table $table", DB_DATAOBJECT_ERROR_INVALIDCONFIG); - return $r = false; + return false; } if ($link) { if ($obj->get($link, $this->$row)) { return $obj; } else { - return $r= false; + return false; } } if ($obj->get($this->$row)) { return $obj; } - return $r = false; + return false; } /** @@ -2464,7 +2464,7 @@ $this->_connect(); if (!isset($_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5])) { - return $r = false; + return false; } return $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]; } @@ -2481,7 +2481,7 @@ global $_DB_DATAOBJECT; $this->_connect(); if (!isset($_DB_DATAOBJECT['RESULTS'][$this->_DB_resultid])) { - return $r = false; + return false; } return $_DB_DATAOBJECT['RESULTS'][$this->_DB_resultid]; } Index: pear/DB_DataObject/package.xml diff -u pear/DB_DataObject/package.xml:1.67 pear/DB_DataObject/package.xml:1.68 --- pear/DB_DataObject/package.xml:1.67 Sat Oct 18 03:37:02 2003 +++ pear/DB_DataObject/package.xml Fri Nov 14 21:46:07 2003 @@ -22,8 +22,8 @@ </maintainers> <release> - <version>1.2.1</version> - <date>2003-08-20</date> + <version>1.3</version> + <date>2003-10-15</date> <notes> New Features @@ -31,13 +31,11 @@ (Markus Wolff) - MsSQL native get_last_insert ID using SELECT @@IDENTITY - - ** you may wat not consider using this with transactions eg. $dataobject->query('BEGIN') and $dataobject->query('COMMIT') to ensure thread safety. (Markus Wolff) + - DB_DataObject_Cast - a generic casting feature for assigning variables - * Common usages: // blobs $dataObject->someblobfield = DB_DataObject_Cast::blob(file_get_contents('xxx.jpg')); @@ -59,10 +57,29 @@ You can extend this object to provide your own datatypes.. + + - PHP5 Compatibility + Return values should work with PHP5beta2 + Overload (__call) should work with PHP5beta2 + - table() and keys() Allow setting of data with a value + (so you can use dataobjects without extended instances.) + + - factory/ getLinks and autoloading + Will use the full path location in config to check if the file exists, + after that it is included without warnings turned off.. + (autoloading check to see if class exists first - should be faster) Fixes: - Validate is an optional dependency (Arnaud Limbourg) + - Bug #228, BOOL type on postgresql correctly quoted. + - Bug #133, No error is raised when calling fetch with no data returned, + just produces a debug warning now + - Bug #172,Turning of Overload + If you define DB_DATAOBJECT_NO_OVERLOAD to any value, then dataobjects will not be overloaded, + This is usefull when working with ZendOptimizer, that may segfault with certain optimization levels + + </notes> <state>stable</state>
Index: pear/DB_DataObject/ChangeLog diff -u pear/DB_DataObject/ChangeLog:1.1 pear/DB_DataObject/ChangeLog:1.2 --- pear/DB_DataObject/ChangeLog:1.1 Tue Jul 15 23:17:36 2003 +++ pear/DB_DataObject/ChangeLog Fri Nov 14 21:46:07 2003 @@ -1,6 +1,158 @@ +2003-11-13 Thursday alan_k + + * attempt to fix bug #228 + +2003-11-09 Sunday alan_k + + * typo + * subtle warning + * add DB_DATAOBJECT_NO_OVERLOAD define, and FC/BC support for PHP5 + (including return by ref fixes) + +2003-10-28 Tuesday alan_k + + * remove raiseError on fetch with no data.. - just produces debug + warning now.. + +2003-10-25 Saturday alan_k + + * Major change to internal storage of query building store - + significantly reduces the size of objects when they are + fetched/print_r.ed - needs more testing! + * restore some checks for class include - file exists.. - its + relayed into from getLink + +2003-10-22 Wednesday alan_k + + * fix bug #133 and tidy up debuging a little + +2003-10-18 Saturday alan_k + + * fix toString() for date usage. + * raise Errors.. + * correct examples + * db_dataobject_cast support. + * prevent writing of key values for insert (autoincrement only) and + on update all the time.. - required for MSSQL support (Markus + Wolff) + +2003-10-08 Wednesday alan_k + + * tidy up debugging a little + +2003-09-25 Thursday alan_k + + * spotted typo in database() + +2003-09-23 Tuesday alan_k + + * small fixes on last update + * oops - thanks to commit emails for this one + * try and make some sense of the sequence - autoincrement logic + +2003-09-18 Thursday alan_k + + * fix bug #20 - generator on win32 thanks to sergey at nikiforov + dot net + +2003-09-16 Tuesday alan_k + + * add mssql to early check for sequences - oops missed that one - + thx Markus again.. + +2003-09-13 Saturday alan_k + + * make the link syntax as an array, the alternative first argument + for joinAdd.. - enables joins without links.ini.. + +2003-09-11 Thursday alan_k + + * experimental - on the fly setting of database fields and keys + +2003-09-10 Wednesday alan_k + + * let php warnings show on failed include - they are far more + informative that anything worth displaying. + +2003-09-09 Tuesday arnaud + + * * typo + * * add a simple batch script to execute createTables.php * update + package.xml filelist # this is done in agreement with alan ;) + * * ws + +2003-09-04 Thursday alan_k + + * native autoincrement for MsSQL (Markus Wolff) + * using case sensitive naming doesnt work - oracle likes upper - + postgres.. etc. lowercase the result name... - use default + +2003-08-27 Wednesday alan_k + + * apparently that breaks as well.. - fetchrow without the extra + param + * oracle only likes uppercase names - not the smartest of expensive + databases that one.. + * fix problem with oracle - hopefully dataobject_num is reasonably + rare. (Patrick Roos) + * show fetch timings in debug mode + * changing level 1 debugging to display queries and result times.. + - 2 now shows each fetch + * try auto updating package number (thanks to Tomas Cox) + +2003-08-26 Tuesday alan_k + + * make validate an optional dependancy... - does this work! + * sync this up for the next release for a change.. - ( Arnaud + Limbourg) + +2003-08-17 Sunday alan_k + + * adding links() to retreive the links array (Markus Wolff) + +2003-08-14 Thursday alan_k + + * future support for explain on debug + * sync up package.xml with generator changes + * CS fixes and make generator more tolerant of broken editors + (Andreas Ljunggren) + +2003-08-13 Wednesday alan_k + + * revert the null checking change - there is a big knock on effect + from this change. - staticGet relays rely on the null var + * using null is not always a great way to evaluted variable + arguments. + +2003-08-11 Monday alan_k + + * get name right :) + * making table(), keys() public, adding access to database() and + tableName() (Marcus Wolff) + +2003-08-09 Saturday alan_k + + * reducing the dependancy + +2003-08-07 Thursday alan_k + + * Properly fix the limit testing + * Improve argument testing on limit (Demian Turner) + * extra argument ot joinAdd() to allow multiple targets of same + type. (Andy Crain) + * fix the static get cache properly + +2003-07-18 Friday alan_k + + * prepping for a bugfix release + * fix NULL values when updating + 2003-07-16 Wednesday alan_k + * prepping for 1.0 release + * full generated Changelog - it would be nice if we had standard + tools to do this in pear = pear changelog :).. * fix bug with cache clearing not working with staticGet and update 2003-07-12 Saturday mj Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.151 pear/DB_DataObject/DataObject.php:1.152 --- pear/DB_DataObject/DataObject.php:1.151 Sat Nov 8 22:20:03 2003 +++ pear/DB_DataObject/DataObject.php Fri Nov 14 21:46:07 2003 @@ -20,7 +20,7 @@ * @package DB_DataObject * @category DB * - * $Id: DataObject.php,v 1.151 2003/11/09 03:20:03 alan_k Exp $ + * $Id: DataObject.php,v 1.152 2003/11/15 02:46:07 alan_k Exp $ */ /* ===================================================================================== @@ -310,7 +310,7 @@ $obj = DB_DataObject::factory(substr($class,strlen($_DB_DATAOBJECT['CONFIG']['class_prefix']))); if (PEAR::isError($obj)) { DB_DataObject::raiseError("could not autoload $class", DB_DATAOBJECT_ERROR_NOCLASS); - return $r = false; + return false; } if (!@$_DB_DATAOBJECT['CACHE'][$lclass]) { @@ -318,7 +318,7 @@ } if (!$obj->get($k,$v)) { DB_DataObject::raiseError("No Data return from get $k $v", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; + return false; } $_DB_DATAOBJECT['CACHE'][$lclass][$key] = $obj; return $_DB_DATAOBJECT['CACHE'][$lclass][$key]; @@ -1960,25 +1960,25 @@ if ($p = strpos($row,".")) { $row = substr($row,0,$p); } - return $r = $this->getLink($row,$table,$link); + return $r = &$this->getLink($row,$table,$link); } else { DB_DataObject::raiseError( "getLink: $row is not defined as a link (normally this is ok)", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; // technically a possible error condition? + return false; // technically a possible error condition? } } else { // use the old _ method if (!($p = strpos($row, '_'))) { - return $r = null; + return null; } $table = substr($row, 0, $p); - return $r = $this->getLink($row, $table); + return $r = &$this->getLink($row, $table); } } if (!isset($this->$row)) { DB_DataObject::raiseError("getLink: row not set $row", DB_DATAOBJECT_ERROR_NODATA); - return $r = false; + return false; } // check to see if we know anything about this table.. @@ -1989,20 +1989,20 @@ DB_DataObject::raiseError( "getLink:Could not find class for row $row, table $table", DB_DATAOBJECT_ERROR_INVALIDCONFIG); - return $r = false; + return false; } if ($link) { if ($obj->get($link, $this->$row)) { return $obj; } else { - return $r= false; + return false; } } if ($obj->get($this->$row)) { return $obj; } - return $r = false; + return false; } /** @@ -2464,7 +2464,7 @@ $this->_connect(); if (!isset($_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5])) { - return $r = false; + return false; } return $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]; } @@ -2481,7 +2481,7 @@ global $_DB_DATAOBJECT; $this->_connect(); if (!isset($_DB_DATAOBJECT['RESULTS'][$this->_DB_resultid])) { - return $r = false; + return false; } return $_DB_DATAOBJECT['RESULTS'][$this->_DB_resultid]; } Index: pear/DB_DataObject/package.xml diff -u pear/DB_DataObject/package.xml:1.67 pear/DB_DataObject/package.xml:1.68 --- pear/DB_DataObject/package.xml:1.67 Sat Oct 18 03:37:02 2003 +++ pear/DB_DataObject/package.xml Fri Nov 14 21:46:07 2003 @@ -22,8 +22,8 @@ </maintainers> <release> - <version>1.2.1</version> - <date>2003-08-20</date> + <version>1.3</version> + <date>2003-10-15</date> <notes> New Features @@ -31,13 +31,11 @@ (Markus Wolff) - MsSQL native get_last_insert ID using SELECT @@IDENTITY - - ** you may wat not consider using this with transactions eg. $dataobject->query('BEGIN') and $dataobject->query('COMMIT') to ensure thread safety. (Markus Wolff) + - DB_DataObject_Cast - a generic casting feature for assigning variables - * Common usages: // blobs $dataObject->someblobfield = DB_DataObject_Cast::blob(file_get_contents('xxx.jpg')); @@ -59,10 +57,29 @@ You can extend this object to provide your own datatypes.. + + - PHP5 Compatibility + Return values should work with PHP5beta2 + Overload (__call) should work with PHP5beta2 + - table() and keys() Allow setting of data with a value + (so you can use dataobjects without extended instances.) + + - factory/ getLinks and autoloading + Will use the full path location in config to check if the file exists, + after that it is included without warnings turned off.. + (autoloading check to see if class exists first - should be faster) Fixes: - Validate is an optional dependency (Arnaud Limbourg) + - Bug #228, BOOL type on postgresql correctly quoted. + - Bug #133, No error is raised when calling fetch with no data returned, + just produces a debug warning now + - Bug #172,Turning of Overload + If you define DB_DATAOBJECT_NO_OVERLOAD to any value, then dataobjects will not be overloaded, + This is usefull when working with ZendOptimizer, that may segfault with certain optimization levels + + </notes> <state>stable</state>