hunk.code_window: func (s SqlPreferenceStore) insert(transaction *gorp.Transaction, preference *model.Preference) StoreResult {
   	result := StoreResult{}
   	if err := transaction.Insert(preference); err != nil {
   		if IsUniqueConstraintError(err.Error(), []string{"UserId", "preferences_pkey"}) {
   			result.Err = model.NewLocAppError("SqlPreferenceStore.insert", "store.sql_preference.insert.exists.app_error", nil,
   				"user_id="+preference.UserId+", category="+preference.Category+", name="+preference.Name+", "+err.Error())
   		} else {
   			result.Err = model.NewLocAppError("SqlPreferenceStore.insert", "store.sql_preference.insert.save.app_error", nil,
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit: 		if IsUniqueConstraintError(err, []string{"UserId", "preferences_pkey"}) {
  
hunk.file_path: store/sql_preference_store.go
hunk.type: replace
file: test::
  	go test
  