Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.09.2006, 10:23   #1
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default Cached Error : sqlstate 22002

i got this error when i try to make a new chars. In lineage it said chars already exist, and on cached :

Quote:
09/08/2006 03:18:xx.xx7, fetch error
09/08/2006 03:18:xx.xx7, sqlstate 22002
09/08/2006 03:18:xx.xx7, msgText [Microsoft][ODBC SQL Server Driver]Indicator variable required but not supplied
09/08/2006 03:18:xx.xx7, sql EXEC lin_GetUserDataByCharId 1463
09/08/2006 03:18:xx.xx7, [.\User.cpp][4243] undefined (or unregistered) char Id[1463]
09/08/2006 03:18:xx.xx7, --- call stack ---
09/08/2006 03:18:xx.xx7, [0] void IOThread_common(void *arglist)
09/08/2006 03:18:xx.xx7, [1] static bool CreateCharacterPacket(CSocket* pSocket, const unsigned char* packet)
09/08/2006 03:18:xx.xx7, [2] CUserSP CUserDb::GetUser(int nUserId, bool bLoadIfNotExist)
-_-

already watch on lin_GetUserDataByCharId procedure, nothing bad. =(

/sory for my bad english o.O
comoriano is offline  
Old 08.09.2006, 10:39   #2
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by comoriano View Post
i got this error when i try to make a new chars. In lineage it said chars already exist, and on cached :

-_-

already watch on lin_GetUserDataByCharId procedure, nothing bad. =(

/sory for my bad english o.O
maybe problem no in procedure, but in

sql EXEC lin_GetUserDataByCharId 1463

Test2: open SQL Server and call this sql exec
if direct command no show error, maybe cheater?
HF is offline  
Old 08.09.2006, 10:53   #3
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default

ok -_- no more error
but i can'y make a new char -_-

I got error ' name already exist '
comoriano is offline  
Old 08.09.2006, 14:47   #4
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default

nobody know -.-
comoriano is offline  
Old 08.09.2006, 17:46   #5
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

i can try to guess - you moved from c1 to c4 and used wrong scripts - it had not updated user_data table properly so char_id is not an Identity column anymore - check your user_data table.
Stazis is offline  
Old 08.09.2006, 19:24   #6
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default

My query user_data here
-_-

maybe something is wrong

Quote:
[char_name] [nvarchar](50) COLLATE Korean_Wansung_CI_AS NOT NULL,
[char_id] [int] IDENTITY(1,1) NOT NULL,
[account_name] [nvarchar](50) COLLATE Korean_Wansung_CI_AS NOT NULL,
[account_id] [int] NOT NULL,
[pledge_id] [int] NOT NULL CONSTRAINT [DF_user_data_pledge_id] DEFAULT ((0)),
[builder] [tinyint] NOT NULL CONSTRAINT [DF_user_data_builder] DEFAULT ((0)),
[gender] [tinyint] NOT NULL,
[race] [tinyint] NOT NULL,
[class] [tinyint] NOT NULL,
[world] [smallint] NOT NULL,
[xloc] [int] NOT NULL,
[yloc] [int] NOT NULL,
[zloc] [int] NOT NULL,
[IsInVehicle] [smallint] NOT NULL CONSTRAINT [DF_user_data_IsInVehicle] DEFAULT ((0)),
[HP] [float] NOT NULL,
[MP] [float] NOT NULL,
[SP] [int] NOT NULL CONSTRAINT [DF_user_data_SP] DEFAULT ((0)),
[Exp] [int] NOT NULL,
[Lev] [tinyint] NOT NULL,
[align] [int] NOT NULL,
[PK] [int] NOT NULL CONSTRAINT [DF_user_data_PK] DEFAULT ((0)),
[PKpardon] [int] NOT NULL CONSTRAINT [DF_user_data_PKpardon] DEFAULT ((0)),
[Duel] [int] NOT NULL CONSTRAINT [DF_user_data_Dual] DEFAULT ((0)),
[ST_underware] [int] NOT NULL CONSTRAINT [DF_user_data_ST_underware] DEFAULT ((0)),
[ST_right_ear] [int] NOT NULL CONSTRAINT [DF_user_data_ST_right_ear] DEFAULT ((0)),
[ST_left_ear] [int] NOT NULL CONSTRAINT [DF_user_data_ST_left_ear] DEFAULT ((0)),
[ST_neck] [int] NOT NULL CONSTRAINT [DF_user_data_ST_neck] DEFAULT ((0)),
[ST_right_finger] [int] NOT NULL CONSTRAINT [DF_user_data_ST_right_finger] DEFAULT ((0)),
[ST_left_finger] [int] NOT NULL CONSTRAINT [DF_user_data_ST_left_finger] DEFAULT ((0)),
[ST_head] [int] NOT NULL CONSTRAINT [DF_user_data_ST_head] DEFAULT ((0)),
[ST_right_hand] [int] NOT NULL CONSTRAINT [DF_user_data_ST_right_hand] DEFAULT ((0)),
[ST_left_hand] [int] NOT NULL CONSTRAINT [DF_user_data_ST_left_hand] DEFAULT ((0)),
[ST_gloves] [int] NOT NULL CONSTRAINT [DF_user_data_ST_gloves] DEFAULT ((0)),
[ST_chest] [int] NOT NULL CONSTRAINT [DF_user_data_ST_chest] DEFAULT ((0)),
[ST_legs] [int] NOT NULL CONSTRAINT [DF_user_data_ST_legs] DEFAULT ((0)),
[ST_feet] [int] NOT NULL CONSTRAINT [DF_user_data_ST_feet] DEFAULT ((0)),
[ST_back] [int] NOT NULL CONSTRAINT [DF_user_data_ST_back] DEFAULT ((0)),
[ST_both_hand] [int] NOT NULL CONSTRAINT [DF_user_data_ST_both_hand] DEFAULT ((0)),
[create_date] [datetime] NOT NULL CONSTRAINT [DF_user_data_create_date] DEFAULT (getdate()),
[login] [datetime] NULL,
[logout] [datetime] NULL,
[quest_flag] [binary](32) NOT NULL CONSTRAINT [DF_user_data_quest_flag] DEFAULT (0x00),
[nickname] [nvarchar](50) COLLATE Korean_Wansung_CI_AS NULL,
[power_flag] [binary](32) NOT NULL CONSTRAINT [DF_user_data_power_flag] DEFAULT (0x00000000000000000000000000000000000000000000000 00000000000000000),
[pledge_dismiss_time] [int] NOT NULL CONSTRAINT [DF_user_data_pledge_manage_time] DEFAULT ((0)),
[pledge_leave_time] [int] NOT NULL CONSTRAINT [DF_user_data_pledge_leave_time] DEFAULT ((0)),
[pledge_leave_status] [tinyint] NOT NULL CONSTRAINT [DF_user_data_pledge_leave_status] DEFAULT ((0)),
[max_hp] [int] NOT NULL CONSTRAINT [DF_user_data_max_hp] DEFAULT ((0)),
[max_mp] [int] NOT NULL CONSTRAINT [DF_user_data_max_mp] DEFAULT ((0)),
[quest_memo] [char](32) COLLATE Korean_Wansung_CI_AS NULL,
[face_index] [int] NOT NULL CONSTRAINT [DF_user_data_face_index] DEFAULT ((0)),
[hair_shape_index] [int] NOT NULL CONSTRAINT [DF_user_data_hair_shape_index] DEFAULT ((0)),
[hair_color_index] [int] NOT NULL CONSTRAINT [DF_user_data_hair_color_index] DEFAULT ((0)),
[use_time] [int] NOT NULL CONSTRAINT [DF_user_data_use_time] DEFAULT ((0)),
[temp_delete_date] [smalldatetime] NULL,
[pledge_ousted_time] [int] NOT NULL CONSTRAINT [DF_user_data_pledge_ousted_time] DEFAULT ((0)),
[pledge_withdraw_time] [int] NOT NULL CONSTRAINT [DF_user_data_plwdge_withdraw_time] DEFAULT ((0)),
[surrender_war_id] [int] NOT NULL CONSTRAINT [DF_user_data_surrender_war_id] DEFAULT ((0)),
[drop_exp] [int] NOT NULL CONSTRAINT [DF_user_data_drop_exp] DEFAULT ((0)),
[old_x] [int] NULL,
[old_y] [int] NULL,
[old_z] [int] NULL,
[subjob_id] [int] NOT NULL CONSTRAINT [DF__user_data__subjo__5B638405] DEFAULT ((0)),
[ssq_dawn_round] [int] NOT NULL CONSTRAINT [DF__user_data__ssq_d__5C57A83E] DEFAULT ((0)),
[cp] [float] NOT NULL CONSTRAINT [DF__user_data__cp__5D4BCC77] DEFAULT ((0)),
[max_cp] [float] NOT NULL CONSTRAINT [DF__user_data__max_c__5E3FF0B0] DEFAULT ((0)),
[ST_hair] [int] NULL,
[subjob0_class] [int] NOT NULL CONSTRAINT [DF__user_data__subjo__733B0D96] DEFAULT ((-1)),
[subjob1_class] [int] NOT NULL CONSTRAINT [DF__user_data__subjo__742F31CF] DEFAULT ((-1)),
[subjob2_class] [int] NOT NULL CONSTRAINT [DF__user_data__subjo__75235608] DEFAULT ((-1)),
[subjob3_class] [int] NOT NULL CONSTRAINT [DF__user_data__subjo__76177A41] DEFAULT ((-1)),
comoriano is offline  
Old 08.09.2006, 19:30   #7
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

Quote:
[ST_hair] [int] NULL,
^- this is your problem

or at least one of them
hr is offline  
Old 08.09.2006, 19:37   #8
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default

Quote:
Originally Posted by hr View Post
^- this is your problem

or at least one of them
ty veru much
=)
it working pretty good now
comoriano is offline  
Old 10.09.2006, 16:54   #9
johnbo
Архивный участник
 
Join Date: Sep 2006
Posts: 2
Default

Quote:
Originally Posted by comoriano View Post
ty veru much
=)
it working pretty good now

Dear hr & comoriano :

I have the same problem.
but i can not understand the meaning below

"[ST_hair] [int] NULL,

^- this is your problem

or at least one of them"


would you kindly to explain the detailed method ?

thanks for your help .
johnbo is offline  
Old 10.09.2006, 22:28   #10
comoriano
Архивный участник
 
Join Date: Jun 2006
Posts: 15
Default

Quote:
Originally Posted by johnbo View Post
Dear hr & comoriano :

I have the same problem.
but i can not understand the meaning below

"[ST_hair] [int] NULL,

^- this is your problem

or at least one of them"


would you kindly to explain the detailed method ?

thanks for your help .
[ST_hair] cant be NULL
default value must to be 0
comoriano is offline  
Old 11.09.2006, 02:38   #11
johnbo
Архивный участник
 
Join Date: Sep 2006
Posts: 2
Default

thanks a lot.

I will try it tonight.
johnbo is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:55.