{"id":146,"date":"2008-03-28T07:51:37","date_gmt":"2008-03-28T07:51:37","guid":{"rendered":"http:\/\/newblog.mix1009.net\/?p=146"},"modified":"2008-03-28T07:51:37","modified_gmt":"2008-03-28T07:51:37","slug":"trac-report-2-%ec%82%ac%ec%9a%a9%ec%9e%90%eb%b3%84-%ec%b5%9c%ea%b7%bc%eb%b3%80%ea%b2%bd%ec%82%ac%ed%95%ad","status":"publish","type":"post","link":"https:\/\/mix1009.net\/?p=146","title":{"rendered":"Trac report #2 \uc0ac\uc6a9\uc790\ubcc4 \ucd5c\uadfc\ubcc0\uacbd\uc0ac\ud56d"},"content":{"rendered":"<p>\uc0ac\uc6a9\uc790\ubcc4 \ucd5c\uadfc \ubcc0\uacbd \uc0ac\ud56d \ubcf4\ub294\ub370 Trac report \ub9cc\ub4dc\ub294\uac8c \uc27d\uc9c0 \uc54a\ub354\uad70\uc694. \ub354 \uc26c\uc6b4 \ubc29\ubc95\uc774 \uc788\ub294\uc9c0 \uc798 \ubaa8\ub974\uaca0\uc9c0\ub9cc&#8230; SQL \uc798 \ud558\uc2dc\ub294 \ubd84\uc758 \ub3c4\uc6c0\uc744 \ubc1b\uc544 \ub9cc\ub4e0 \ucffc\ub9ac\uc785\ub2c8\ub2e4. \uc800\ub294 SQL\uc744 \uc798\uac8c \uc9e4\ub77c\uc11c \ub9cc\ub4dc\ub294 \ud3b8\uc778\ub370, SQL \uc870\uae08 \ubcf5\uc7a1\ud574\uc9c0\uba74 \uc5b4\ub835\uace0, \ucd5c\uc801\ud654\ub3c4 \uc5b4\ub824\uc6cc\uc9c0\uc8e0.. \uc0ac\uc6a9\uc790 \uc544\uc774\ub514\uc640 \ucd9c\ub825\ub418\ub294 \uac2f\uc218\uac00 \ud558\ub4dc\ucf54\ub529 \ub418\uc5b4\uc57c \ud574\uc11c \uc880 \uadf8\ub807\uae34 \ud558\uc9c0\ub9cc&#8230; \uadf8\ub798\ub3c4 \uc6d0\ud558\ub294\ub300\ub85c \ucd9c\ub825\uc740 \uc798 \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<p>[code]<br \/>\nselect<br \/>\n &nbsp; p.value AS __color__,<br \/>\n &nbsp; owner AS __group__,<br \/>\n &nbsp; id AS ticket,<br \/>\n &nbsp; (CASE status WHEN &#8216;assigned&#8217; THEN owner||&#8217; *&#8217; ELSE owner END) AS owner,<br \/>\n &nbsp; summary,<br \/>\n &nbsp; component,<br \/>\n &nbsp; priority,<br \/>\n &nbsp; t.type AS type, <br \/>\n &nbsp; status,<br \/>\n &nbsp; time AS _created,<br \/>\n &nbsp; changetime AS modified,<br \/>\n &nbsp; description AS _description,<br \/>\n &nbsp; reporter AS _reporter<\/p>\n<p>from (<\/p>\n<p>&nbsp; select * from (SELECT * FROM ticket WHERE owner=&#8217;mix1009&#8242; ORDER by changetime desc limit 0,5) u1<\/p>\n<p>union <\/p>\n<p>&nbsp; select * from (SELECT * FROM ticket WHERE owner=&#8217;user2&#8242; ORDER by changetime desc limit 0,5) u2<\/p>\n<p>union <\/p>\n<p>&nbsp; select * from (SELECT * FROM ticket WHERE owner=&#8217;user3&#8242; ORDER by changetime desc limit 0,5) u3<\/p>\n<p>union <\/p>\n<p>&nbsp; select * from (SELECT * FROM ticket WHERE owner=&#8217;user4&#8242; ORDER by changetime desc limit 0,5) u4<\/p>\n<p>union <\/p>\n<p>&nbsp; select * from (SELECT * FROM ticket WHERE owner=&#8217;user5&#8242; ORDER by changetime desc limit 0,5) u5<\/p>\n<p>\n) t, enum p<\/p>\n<p>where p.name = t.priority AND p.type = &#8216;priority&#8217;<br \/>\norder by owner, changetime desc<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc6a9\uc790\ubcc4 \ucd5c\uadfc \ubcc0\uacbd \uc0ac\ud56d \ubcf4\ub294\ub370 Trac report \ub9cc\ub4dc\ub294\uac8c \uc27d\uc9c0 \uc54a\ub354\uad70\uc694. \ub354 \uc26c\uc6b4 \ubc29\ubc95\uc774 \uc788\ub294\uc9c0 \uc798 \ubaa8\ub974\uaca0\uc9c0\ub9cc&#8230; SQL \uc798 \ud558\uc2dc\ub294 \ubd84\uc758 \ub3c4\uc6c0\uc744 \ubc1b\uc544 \ub9cc\ub4e0 \ucffc\ub9ac\uc785\ub2c8\ub2e4. \uc800\ub294 SQL\uc744 \uc798\uac8c \uc9e4\ub77c\uc11c \ub9cc\ub4dc\ub294 \ud3b8\uc778\ub370, SQL \uc870\uae08 \ubcf5\uc7a1\ud574\uc9c0\uba74 \uc5b4\ub835\uace0, \ucd5c\uc801\ud654\ub3c4 \uc5b4\ub824\uc6cc\uc9c0\uc8e0.. \uc0ac\uc6a9\uc790 \uc544\uc774\ub514\uc640 \ucd9c\ub825\ub418\ub294 \uac2f\uc218\uac00 \ud558\ub4dc\ucf54\ub529 \ub418\uc5b4\uc57c \ud574\uc11c \uc880 \uadf8\ub807\uae34 \ud558\uc9c0\ub9cc&#8230; \uadf8\ub798\ub3c4 \uc6d0\ud558\ub294\ub300\ub85c \ucd9c\ub825\uc740 \uc798 \ud574\uc90d\ub2c8\ub2e4. [code] select &nbsp; p.value [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[31,114],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-19","tag-trac","tag-trac-report"],"_links":{"self":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":0,"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}