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
21
decomp/schema/RustyHearts/procs/up_insert_buff.sql
Normal file
21
decomp/schema/RustyHearts/procs/up_insert_buff.sql
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
CREATE PROCEDURE [dbo].[up_insert_buff]
|
||||
@character_id uniqueidentifier,
|
||||
@type int,
|
||||
@id int,
|
||||
@time int
|
||||
|
||||
as
|
||||
set nocount on
|
||||
|
||||
if NOT EXISTS (select @character_id from [dbo].[BuffTable] with (READUNCOMMITTED) where [character_id] = @character_id and [buff_type] = @type and [buff_id] = @id )
|
||||
begin
|
||||
insert into BuffTable
|
||||
values
|
||||
(
|
||||
@character_id,
|
||||
@type,
|
||||
@id,
|
||||
@time
|
||||
);
|
||||
end
|
||||
return @@error
|
||||
Loading…
Add table
Add a link
Reference in a new issue