ZF-2695: Select with Array broken with new implementation
Description
Using the old array input with only one qualifier the values have to be seperated with "," to fit in an IN statement.
This has worked in incubator but somehow the code has only be integrated partitionaly...
$select->where('products.id IN(?)', array(1, 2, 3));
// Output should be :
// products.id IN('1','2','3')
Comments
Posted by Wil Sinclair (wil) on 2008-02-21T13:33:06.000+0000
Is this really critical enough to hold up the 1.5 release? If not, then we should mark it as a should have.
Posted by Thomas Weidner (thomas) on 2008-02-21T15:14:50.000+0000
Not sure... This is a possible BC problem between 1.0.4 and 1.5.
Better to ask Simon or Bill about possible implications.
Posted by Thomas Weidner (thomas) on 2008-03-09T13:22:08.000+0000
So... I added array handling for values (not for conditions this is another issue).
But there is still a problem as only numbers (ints/floats) are quoted, and strings not. This problem is another one than this... but it is the reason why array values are not working for strings and should also be fixed.
I will keep this issue open until also strings are working for array notation in values.
Reproducable code
The first produces name IN (2, 6) But the second produces name IN (, ) but it should be name IN ('2', '6')
Posted by Thomas Weidner (thomas) on 2008-03-11T03:31:58.000+0000
Class will be reworked by Simon... He has a better overview over the complete Db design, not only Zend_Db_Select and will fix this better than me.
Posted by Tomasz Wiktorski (sabistik) on 2008-03-11T04:48:04.000+0000
Hello, After you last commit (8711) i have problem with findDependentRowset() method. When i use it i get error:
I check it on examples from manual http://framework.zend.com/manual/en/… . Relationshitp: $bugsReportedByUser = $user1234->findDependentRowset('Bugs');
Posted by Simon Mundy (peptolab) on 2008-03-12T08:43:27.000+0000
Resolved in trunk r8783
Posted by Wil Sinclair (wil) on 2008-03-21T17:28:35.000+0000
I'm assuming this was merged to the 1.5 release branch for the 1.5.0 release. Please update JIRA if this is not the case.