Ticket #15762

全投稿を削除すれば、ユーザーのアカウントをなくなる

Open Date: 2009-03-26 17:04 Last Update: 2009-03-26 17:56

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
7
Severity:
5 - Medium
Resolution:
None
File:
None

Details

ユーザーの全投稿を削除すれば、そのユーザーのアカウントを壊れる。ログインできない。Adminで、そのユーザーを表示すれば、全フィールドがブランク。

SQLの修正が必要:

SELECT …

FROM (((users AS a LEFT JOIN

serverfiles AS b ON a.profileImageId = b.serverFileId) LEFT JOIN

serverfiles AS c ON a.backgroundImageId = c.serverFileId) LEFT JOIN

devices AS d ON a.userId = d.userId) LEFT JOIN

statuses AS e ON a.userId = e.senderId

+ AND (e.removedTime = 0 OR e.removedTime IS NULL)

WHERE a.userId = 2

- AND (e.removedTime = 0 OR e.removedTime IS NULL)

ORDER BY e.statusId DESC

LIMIT 0, 1;

Ticket History (2/2 Histories)

2009-03-26 17:04 Updated by: None
  • New Ticket "全投稿を削除すれば、ユーザーのアカウントをなくなる" created
2009-03-26 17:56 Updated by: techmonkeyjp
  • Priority Update from 5 - Medium to 7

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login