1.3 #34

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@okwme

okwme commented Feb 6, 2012

subquery is dependent so if you wrap it again it allows the query to complete in time to finish the rest. relevant to HABTM searching.

see post at http://stackoverflow.com/questions/9154881/using-mysql-in-causes-loop for details

changed
$conditions[] = array("$fieldName in ($subquery)");

to
$conditions[] = array("$fieldName in (SELECT * FROM($subquery) x");

@skie

This comment has been minimized.

Show comment Hide comment
@skie

skie Mar 11, 2012

Member

Really it is not necessery.
Using of Model::getQuery with subquery method allow to generate complete string like "select fieldname from subtable"
and use it inside _addSubquery method

Member

skie commented Mar 11, 2012

Really it is not necessery.
Using of Model::getQuery with subquery method allow to generate complete string like "select fieldname from subtable"
and use it inside _addSubquery method

@skie skie closed this Mar 11, 2012

burzum pushed a commit to burzum/search that referenced this pull request Dec 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment