PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #9815

mistake(?) in PEAR joinAdd Documentation

Details

Doc Bug #9815mistake(?) in PEAR joinAdd Documentation
Submitted2007-01-12 16:56 UTC
Frommsohmen at web dot de
Assignedcellog
StatusClosed
PackageDB_DataObject
PHP Version5.2.0
OSLinux
Roadmaps(Not assigned)

Comments

[2007-01-12 16:56 UTC] msohmen at web dot de

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