Doc #9815 [NEW]: mistake(?) in PEAR joinAdd Documentation
| From: | msohmen at web dot de | Date: | Fri, 12 Jan 2007 16:56:29 +0000 |
| Subject: | Doc #9815 [NEW]: mistake(?) in PEAR joinAdd Documentation | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9286@lists.php.net to get a copy of this message | ||
From: msohmen at web dot de
Operating system: Linux
Package version:
PHP version: 5.2.0
Package: Documentation
Bug Type: Documentation Problem
Bug description: mistake(?) in PEAR joinAdd Documentation
Description:
------------
In the PEAR Documentation seems to be a mistake:
- function joinAdd, example for join result, original:
SELECT * FROM image,product_image
LEFT JOIN image ON product_image
LEFT JOIN image ON productgroup_image
WHERE product
AND product.id = product_image.pid
AND product.id = productgroup_image.pid
The "where" condition in this case should be
WHERE image.id = product_image.pid
AND image.id = productgroup_image.pid
I think
Yours, Michael
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9815&edit=1
--