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
18
decomp/schema/RustyHearts/procs/up_update_character_name.sql
Normal file
18
decomp/schema/RustyHearts/procs/up_update_character_name.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
CREATE PROCEDURE [dbo].[up_update_character_name]
|
||||
@character_id [uniqueidentifier],
|
||||
@character_name nvarchar(16)
|
||||
as
|
||||
begin
|
||||
|
||||
set nocount on
|
||||
|
||||
declare @succeed int;
|
||||
SET @succeed = -1;
|
||||
|
||||
if NOT EXISTS (select character_id from CharacterTable with (nolock) WHERE [Name] COLLATE Korean_Wansung_CS_AS = @character_name)
|
||||
begin
|
||||
update CharacterTable set [Name] = @character_name where character_id = @character_id
|
||||
SET @succeed = 1;
|
||||
end
|
||||
select UPDATE_CHARACTER_NAME = @succeed
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue