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
180
decomp/schema/RustyHearts/procs/up_insert_auctionItem.sql
Normal file
180
decomp/schema/RustyHearts/procs/up_insert_auctionItem.sql
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
CREATE PROCEDURE [dbo].[up_insert_auctionItem]
|
||||
@seller_name nvarchar(16),
|
||||
@item_id [uniqueidentifier],
|
||||
@character_id [uniqueidentifier],
|
||||
@auth_id [uniqueidentifier],
|
||||
@page_index int,
|
||||
@slot_index int,
|
||||
@code int,
|
||||
@use_cnt int,
|
||||
@remain_time int,
|
||||
@gcode int,
|
||||
@durability int,
|
||||
@enhance_level int,
|
||||
@option_1_code int,
|
||||
@option_1_value int,
|
||||
@option_2_code int,
|
||||
@option_2_value int,
|
||||
@option_3_code int,
|
||||
@option_3_value int,
|
||||
@OptionGroup int,
|
||||
@ReconNum int,
|
||||
@ReconState int,
|
||||
@Socket_count int,
|
||||
@Socket_1_code int,
|
||||
@Socket_1_value int,
|
||||
@Socket_2_code int,
|
||||
@Socket_2_value int,
|
||||
@Socket_3_code int,
|
||||
@Socket_3_value int,
|
||||
@expire_time int,
|
||||
@selling_price int,
|
||||
@start_price int,
|
||||
@bidder_name nvarchar(16),
|
||||
@bidder_auth_uid [uniqueidentifier],
|
||||
@bidder_uid [uniqueidentifier],
|
||||
@bid_price int,
|
||||
@periodtime int,
|
||||
@registertime bigint,
|
||||
@activity_value int, --활성석 20100928 jojo
|
||||
@socket_1_color tinyint, --소켓
|
||||
@socket_2_color tinyint,
|
||||
@socket_3_color tinyint,
|
||||
@item_name nvarchar(30),
|
||||
@item_level tinyint,
|
||||
@item_category int,
|
||||
@rank tinyint,
|
||||
@acquireroute tinyint,
|
||||
@physical int,
|
||||
@magical int,
|
||||
@durabilitymax int,
|
||||
@weight int
|
||||
|
||||
as
|
||||
set nocount on
|
||||
set xact_abort on
|
||||
|
||||
begin
|
||||
begin tran
|
||||
insert dbo.AuctionListTable
|
||||
(
|
||||
[seller_name],
|
||||
[item_uid],
|
||||
[character_id],
|
||||
[auth_id],
|
||||
[page_index],
|
||||
[slot_index],
|
||||
[code],
|
||||
[use_cnt],
|
||||
[remain_time],
|
||||
[create_time],
|
||||
[update_time],
|
||||
[gcode],
|
||||
[durability],
|
||||
[enhance_level],
|
||||
[option_1_code],
|
||||
[option_1_value],
|
||||
[option_2_code],
|
||||
[option_2_value],
|
||||
[option_3_code],
|
||||
[option_3_value],
|
||||
[option_group],
|
||||
[ReconNum],
|
||||
[ReconState],
|
||||
[socket_count],
|
||||
[socket_1_code],
|
||||
[socket_1_value],
|
||||
[socket_2_code],
|
||||
[socket_2_value],
|
||||
[socket_3_code],
|
||||
[socket_3_value],
|
||||
[expire_time],
|
||||
[selling_price],
|
||||
[start_price],
|
||||
[bidder_name],
|
||||
[bidder_auth_uid],
|
||||
[bidder_uid],
|
||||
[bid_price],
|
||||
[periodtime],
|
||||
[registertime],
|
||||
[activity_value], --활성석 20100928 jojo
|
||||
[socket_1_color],
|
||||
[socket_2_color],
|
||||
[socket_3_color],
|
||||
[item_name],
|
||||
[item_level],
|
||||
[item_category],
|
||||
[rank],
|
||||
[acquireroute],
|
||||
[physical],
|
||||
[magical],
|
||||
[durabilitymax],
|
||||
[weight]
|
||||
)
|
||||
values(
|
||||
@seller_name,
|
||||
@item_id,
|
||||
@character_id,
|
||||
@auth_id,
|
||||
@page_index,
|
||||
@slot_index,
|
||||
@code,
|
||||
@use_cnt,
|
||||
@remain_time,
|
||||
getdate(),
|
||||
getdate(),
|
||||
@gcode,
|
||||
@durability,
|
||||
@enhance_level,
|
||||
@option_1_code,
|
||||
@option_1_value,
|
||||
@option_2_code,
|
||||
@option_2_value,
|
||||
@option_3_code,
|
||||
@option_3_value,
|
||||
@OptionGroup,
|
||||
@ReconNum,
|
||||
@ReconState,
|
||||
@socket_count,
|
||||
@socket_1_code,
|
||||
@socket_1_value,
|
||||
@socket_2_code,
|
||||
@socket_2_value,
|
||||
@socket_3_code,
|
||||
@socket_3_value,
|
||||
@expire_time,
|
||||
@selling_price,
|
||||
@start_price,
|
||||
@bidder_name,
|
||||
@bidder_auth_uid,
|
||||
@bidder_uid,
|
||||
@bid_price,
|
||||
@periodtime,
|
||||
@registertime,
|
||||
@activity_value, --활성석 20100928 jojo
|
||||
@socket_1_color,
|
||||
@socket_2_color,
|
||||
@socket_3_color,
|
||||
@item_name,
|
||||
@item_level,
|
||||
@item_category,
|
||||
@rank,
|
||||
@acquireroute,
|
||||
@physical,
|
||||
@magical,
|
||||
@durabilitymax,
|
||||
@weight
|
||||
|
||||
)
|
||||
|
||||
delete from N_InventoryItem where [item_uid] = @item_id --모두 옮겼으므로 삭제
|
||||
|
||||
if(@@error <> 0 )
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
|
||||
end
|
||||
|
||||
commit
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue