summaryrefslogtreecommitdiff
path: root/tests/unit/Data/SqlMap/sqlmap.xml
blob: e6877f16aea26884b621c6dcdf02871215232009 (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>