글 삭제 이전에 trigger를 만들어 해당 글에 달린 댓글의 사용자별 개수를 파악하여 포인트 감소하도록 코드 수정. 자신의 글에 댓글을 달 경우 포인트 증가하지 않도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4266 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-10 05:03:52 +00:00
parent 5260252282
commit 196367218e
3 changed files with 83 additions and 4 deletions

View file

@ -0,0 +1,16 @@
<query id="getCommentUsers" action="select">
<tables>
<table name="comments" />
</tables>
<columns>
<column name="member_srl" />
<column name="count(*)" alias="count"/>
</columns>
<conditions>
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
<condition operation="excess" column="member_srl" default="0" pipt="and" />
</conditions>
<groups>
<group column="member_srl" />
</groups>
</query>