11.10.2006, 04:55
|
#6
|
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
SQL bug: Item delete Error and etc...
Original fix owner by sys[antaris]
CopyPaste
-----
Quote:
Originally Posted by sys[antaris]
lin_GetItem
DELETE user_item WHERE item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE item_id = @item_id
lin_DeleteItem
DELETE user_item FROM USER_ITEM WHERE item_id=@item_id
change to:
UPDATE user_item set char_id=0, item_type=0 WHERE item_id=@item_id
lin_AmountChange
DELETE user_item WHERE char_id = @char_id AND item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE char_id = @char_id AND item_id = @item_id
this changes fix all errors in cached eg:
Code:
10/10/2006 15:33:xx.xx7, Item delete Error, id[304546]
10/10/2006 15:33:xx.xx7, [.\WareHouse.cpp][4195] item delete fail[304546][1835][1795]
sry my eng 
|
-----
|
|
|