decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
52
decomp/schema/RustyHearts/procs/up_mail_item_move_old.sql
Normal file
52
decomp/schema/RustyHearts/procs/up_mail_item_move_old.sql
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
CREATE PROCEDURE [dbo].[up_mail_item_move_old]
|
||||
@mail_id [uniqueidentifier],
|
||||
|
||||
@item_id01 [uniqueidentifier],
|
||||
@page_01 int,
|
||||
@slot_01 int,
|
||||
@over_item_id01 [uniqueidentifier],
|
||||
|
||||
@item_id02 [uniqueidentifier],
|
||||
@page_02 int,
|
||||
@slot_02 int,
|
||||
@over_item_id02 [uniqueidentifier],
|
||||
|
||||
@item_id03 [uniqueidentifier],
|
||||
@page_03 int,
|
||||
@slot_03 int,
|
||||
@over_item_id03 [uniqueidentifier]
|
||||
|
||||
as
|
||||
set nocount on
|
||||
|
||||
begin tran
|
||||
|
||||
UPDATE [dbo].[MailTable]
|
||||
SET [gold] = 0
|
||||
WHERE [ID] = @mail_id
|
||||
|
||||
if Exists (select [item_uid] from [dbo].[N_MailItem] with (READUNCOMMITTED) where item_uid = @item_id01)
|
||||
begin
|
||||
exec dbo.up_mail_item_move_sub @item_id01, @page_01, @slot_01, @over_item_id01
|
||||
end
|
||||
|
||||
if Exists (select [item_uid] from [dbo].[N_MailItem] with (READUNCOMMITTED) where item_uid = @item_id02)
|
||||
begin
|
||||
exec dbo.up_mail_item_move_sub @item_id02, @page_02, @slot_02, @over_item_id02
|
||||
end
|
||||
|
||||
if Exists (select [item_uid] from [dbo].[N_MailItem] with (READUNCOMMITTED) where item_uid = @item_id03)
|
||||
begin
|
||||
exec dbo.up_mail_item_move_sub @item_id03, @page_03, @slot_03, @over_item_id03
|
||||
end
|
||||
|
||||
|
||||
declare @ERR int
|
||||
|
||||
SET @ERR = @@ERROR
|
||||
IF @ERR <> 0 BEGIN
|
||||
RAISERROR('처리오류', 16, 10)
|
||||
IF @@TRANCOUNT <> 0 ROLLBACK
|
||||
RETURN (@ERR)
|
||||
END
|
||||
COMMIT TRAN
|
||||
Loading…
Add table
Add a link
Reference in a new issue