I have been staring at a certain select problem for a few hours and I was hoping someone might be able to make the connection for me. I want to merge the two statements:
my $sth = $relation->select( ('Links.ID'), {'Category.ID' => 'See Condition Below'} );
GT::SQL::Condition->new('CategoryID', 'IN', $children)
Can I just insert the GT condition into the statement like?
my $sth = $relation->select( ('Links.ID'), {GT::SQL::Condition->new('CategoryID', 'IN', $children)} );
Just when you think you are getting a handle on this, something is there to make you think
PS. the $relation = $DB->table ('Links', 'CatLinks', 'Category');
http://www.iuni.com/...tware/web/index.html
Links Plugins
my $sth = $relation->select( ('Links.ID'), {'Category.ID' => 'See Condition Below'} );
GT::SQL::Condition->new('CategoryID', 'IN', $children)
Can I just insert the GT condition into the statement like?
my $sth = $relation->select( ('Links.ID'), {GT::SQL::Condition->new('CategoryID', 'IN', $children)} );

Just when you think you are getting a handle on this, something is there to make you think

PS. the $relation = $DB->table ('Links', 'CatLinks', 'Category');
http://www.iuni.com/...tware/web/index.html
Links Plugins