>""Justin Patrin""
<papercrane gmail.com> schrieb im Newsbeitrag
>news:432beae0604271034na1c7199ja0b2ea5fbe6ce60d mail.gmail.com...
>On 4/27/06, Matt Friedman <matt.friedman gmail.com> wrote:
>> Hi,
>>
>> We've been using a workaround (hack) to deal with
an issue that is
>> detailed here:
>> http://pear.
php.net/bugs/bug.php?id=4266
>> Request #4266 Allow joins with multiple keys
>>
>> It looks as though stefan dot doeppert at synapsy
dot com has a
>> solution but I'm not sure if anything has been
happening on this.
>>
>> Just wondering if anyone has cycles to spend some
time on this.
>>
>
>FYI,
>
>Adding official support for joins with multiple-column
primary keys
>would entail adding support for multiple-column primary
keys to all of
>DB_DataObject. DB_DataObject doesn't support multiple
column primary
>keys as it is now and this would be a fairly large
change, not only
>for DB_DataObject but for any packages which use
DB_DataObject.
>
>--
>Justin Patrin
It's pretty easy to enable joins on multiple keys for
DB_DataObject. All you
have to do is patch the joinAdd() method. Instead of exiting
the loop when
looking for a link in the join definition ALL links must be
collected in an
array and then concatened to a string in the respective
syntax.
If there is interest I can post my patch.
Best regards, Torsten Roehr
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|