Open GoogleCodeExporter opened 8 years ago
Try using array() instead of null, that should work
Original comment by pedrospdc
on 26 Jun 2012 at 2:48
Original comment by pedrospdc
on 26 Jun 2012 at 2:49
If I remember well, that doesn't work either because of the "&&
isset($where[0])" condition.
And as I can see without trying it, the function countByQuery() (right up
there) also suffers from the empty/default $where bug.
Original comment by szots...@gmail.com
on 26 Jun 2012 at 3:02
Indeed, those come from the changes I've made on 0.7. I'll work on the fix asap.
Thanks!
Original comment by pedrospdc
on 26 Jun 2012 at 3:03
TableAbstract.php, return early if $where is empty
public function fetchList($where = null, $order = null, $count = null, $offset
= null)
{
$select = $this->select()
->order($order)
->limit($count, $offset);
if (empty($where))
return $select;
if (! empty($where) && is_string($where))
Original comment by diegot...@gmail.com
on 3 Sep 2012 at 3:05
Hello,
Is there a patch available for this?
Original comment by Aa...@theaudience.com
on 21 Sep 2012 at 5:50
Hello Aaron,
Due to some "madness", "apocalypse" or even "bad things" happening at my work
place I've been really really busy for the past months.
You can use diegotdai's suggestion - just manually edit
classes/TableAbstract.php function and generate the models again, then replace
your old TableAbstract.php model at your project models folder. (No need to
replace every model)
I'll work on an patch until then
Original comment by pedrospdc
on 21 Sep 2012 at 7:00
Precise is a leading brand for Model makers and engineering model makers. With
our innovative ideas, excellent artisans and specialized materials.
Original comment by precisee...@gmail.com
on 8 Nov 2012 at 6:37
or put 1=1 in where
Original comment by vdvb...@gmail.com
on 26 Nov 2012 at 2:07
Original issue reported on code.google.com by
szots...@gmail.com
on 18 Jun 2012 at 10:10