Some bugs in the MS SQL implementation of PEAR::DB

From: Date: Wed, 24 Oct 2001 20:15:33 +0000
Subject: Some bugs in the MS SQL implementation of PEAR::DB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-416@lists.php.net to get a copy of this message
OK... I've been playing around with the MS SQL implentation of PEAR::DB and MS SQL 7.0, and I've found a few bugs. I'm not sure who to email, so I figured that I'd report them here. 1. With numRows(), if there are 0 rows, even if there isn't an error, it raises an error. The problem code is this: if (!$rows) { return $this->mssqlRaiseError(); } Since PHP doesn't have a really well-defined boolean type, if $rows is 0, if(!$rows) will return true. 2. The error reporting... it raises an error for every query. This causes problems when trying to detect errors in an application. Thanks for your time... hopefully you'll be able to fix these... --Jason

« previous php.pear.general (#416) next »