Fix a regression bug that wrong primary key is used for new record
Fix a regression bug that wrong primary key is used for new record

naoa/mroonga,naoa/mroonga,yoku0825/mroonga,yoku0825/mroonga,naoa/mroonga,mroonga/mroonga,naoa/mroonga,yoku0825/mroonga,yoku0825/mroonga,naoa/mroonga,mroonga/mroonga,yoku0825/mroonga,mroonga/mroonga,mroonga/mroonga,yoku0825/mroonga,naoa/mroonga