summaryrefslogtreecommitdiff
path: root/tests/simple_unit/Tickets/sqlmap.xml
blob: 81918fbc92e058200613c1ffba7b55e0af26832c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<sqlmap>

  <statement
    id="findNotVisitedWatchedTopicList"
    resultClass="TopicRecord"
    parametrClass="array"
  >
  <![CDATA[
    SELECT rt.*
        FROM rbx_watched_topic as rwt
        LEFT JOIN rbx_topic as rt
        ON rwt.topic_id = rt.topic_id
        WHERE user_id = #user_id# AND
            ( rt.created > #last_visit#  OR
              rt.modified > #last_visit# OR
              rwt.visited = 0 )
        ORDER BY rt.title ASC
  ]]>
  </statement>

</sqlmap>