Bug #10240 [NEW]: Composite key fix for #4266 not applied both ways

From: Date: Fri, 02 Mar 2007 06:16:31 +0000
Subject: Bug #10240 [NEW]: Composite key fix for #4266 not applied both ways
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-5737@lists.php.net to get a copy of this message
From: dsanders at baselinesolutions dot com dot au Operating system: Irrelevant Package version: PHP version: 5.2.1 Package: Bug System Bug Type: Bug Bug description: Composite key fix for #4266 not applied both ways Description: ------------ The fix for #4266 was only applied when retrieving the keys of the joinee object, and not when retrieving the keys for the joiner object. Test script: --------------- links.ini: [test_b] fk_a,fk_b=test_a:key_a,key_b $test_a = DB_DataObject::factory('test_a'); $test_b = DB_DataObject::factory('test_b'); $test_b->joinAdd($test_a); DB_DataObject::debugLevel(1); $test_b->find(); Expected result: ---------------- DO_Test_b: find: DO_Test_b: QUERY: SELECT * FROM test_b INNER JOIN test_a ON test_a.key_a=test_b.fk_a AND test_a.key_b=test_b.fk_b Actual result: -------------- DO_Test_b: find: DO_Test_b: QUERY: SELECT * FROM test_b INNER JOIN test_a ON test_a.key_a,key_b=test_b.fk_a,fk_b -- Edit bug report at http://pear.php.net/bugs/bug.php?id=10240&edit=1 --

« previous php.pear.webmaster (#5737) next »