View Single Post
Old 07.09.2006, 16:46   #9
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

some piece of theory
primary key mark means that combination of selected fields can have only unique value in whole table
e.g.
char_id = 82736
skill_id = 765
subjob_id = 1
there can be only one row in table in with such values
now imagine what happened if you have no subjob_id column as primary key
it means that main class learns skill 765 creates row
82736 765 0
then he switch to subjob 1 and try to learn this skill
but DB can not insert row with 82736 765 combined couse there already is such row - result - skill is not saved - CacheD have that info but DB does not

conclusion - this fix is permanent =)
Stazis is offline