Ticket #1575 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

query reset doesnt work

Reported by: tester Owned by: jwage
Priority: minor Milestone: 1.0.4
Component: Attributes Version: 1.0.3
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description (last modified by jwage) (diff)

hi

there is a problem when i try to reset a query for in the followig code

$query = new Doctrine_Query();
$cars = $query->select('c.*, RANDOM() rand')->from('Car c')->where('c.special_offer = ?', array(true))->orderBy('rand')->limit(5)->execute();
$query->reset();
$brands = $query->select('b.*')->from('Brand b')->where('b.disabled = ? or b.disabled IS NULL', array(false))->execute();

i get the following exception: Unknown aggregate alias: rand

also the limit needs to be reseted

thanx

Change History

Changed 9 months ago by tester

  • description modified (diff)

Changed 9 months ago by jwage

  • milestone changed from Unknown to 1.0.4

Changed 9 months ago by jwage

  • description modified (diff)

Changed 9 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [5126]) [1.0, 1.1] fixes #1575

Note: See TracTickets for help on using tickets.