Ticket #1195 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

RawSql fixes (addWhere, dictinct, count)

Reported by: stefan Owned by: romanb
Priority: major Milestone:
Component: Query/Hydration Version: 0.11.0
Keywords: Cc:
Has Test: yes Status: Pending Core Response
Has Patch: yes

Description (last modified by stefan) (diff)

This ticket addresses several problems an Doctrine_RawSql. Two patches and a test case are attached.

The following problems get fixed:

  • parseDqlQueryPart and therefore addWhere() etc. fail if called several times. (Patch 1)
  • distinct doesn't work (Patch 1)
  • count() is not supported. This makes the RawSql? query useless with Doctrine_Pager (Patch 2)

Attachments

1195TestCase.php (2.9 KB) - added by stefan 5 months ago.
RawSql_p1.patch (1.4 KB) - added by stefan 5 months ago.
RawSql_p2.patch (3.0 KB) - added by stefan 5 months ago.

Change History

Changed 5 months ago by stefan

Changed 5 months ago by stefan

Changed 5 months ago by stefan

Changed 5 months ago by stefan

  • description modified (diff)

Changed 5 months ago by jwage

  • milestone changed from 0.11.1 to 0.12.0

Changed 4 months ago by guilhermeblanco

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

In r4714 fixes #1195. Really thanks for the patch! =)

Changed 3 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.