Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix partial delete multi value index unexpected behavior #3677

Merged

Conversation

danrub
Copy link
Contributor

@danrub danrub commented Mar 2, 2015

manual index command, DELETE FROM index: WHERE key =
was failing on composite key, when rid wasn't specified.

expected behavior, to remove all values under specified (partial/full) key

Use case:
CREATE INDEX index:test notunique string,string
INSERT INTO index:test (key,rid) values (['test','me'],#1:1)
INSERT INTO index:test (key,rid) values (['test','me'],#1:2)

DELETE FROM index:test where key = ['test']
SELECT FROM index:test

expected return 1 row
actual return 2 row

related to #2741

danrub added 2 commits March 2, 2015 18:28
…n composite key, when rid wasn't specified.

       expected behavior, to remove all values under specified (partial/full) key
-remarks: all test passed after fix
lvca added a commit that referenced this pull request Mar 2, 2015
fix partial delete multi value index unexpected behavior
@lvca lvca merged commit 9f11014 into orientechnologies:develop Mar 2, 2015
@lvca
Copy link
Member

lvca commented Mar 2, 2015

Thanks!

@lvca lvca self-assigned this Mar 2, 2015
@lvca lvca added this to the 2.0.4 milestone Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants