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

Subquery Support (Unsupported expression type 4 / NSFunctionExpressionType) #52

Open
chrisballinger opened this issue Jan 25, 2014 · 6 comments

Comments

@chrisballinger
Copy link

We are using a subquery in one of our predicates, and it looks like that is not yet supported. Should we figure out an alternative way?

NSPredicate * predicate = [NSPredicate predicateWithFormat:@"(SUBQUERY(%K, $message, $message.isEncrypted == NO).@count != 0)",OTRManagedBuddyRelationships.messages];

It looks like there is some code to support it but there is a missing "else" which causes it to fail. I added the potentially missing else, but it still fails, so for now we will figure out a way to use less complex NSPredicates.

@gavin-black
Copy link
Member

@chrisballinger thanks for your interest in iMAS. I will look into this, but it seems like quite a bit would need to be added to fully support subqueries. Probably best to work around it for now, since it may be a while till I can get to it. Appreciate you finding the bug, let me know if you encounter anymore issues.

@tslater
Copy link

tslater commented Jul 15, 2014

+1 for this...anything I can do to help?

@chrisballinger
Copy link
Author

I ended up just adding SQLCipher support to YapDatabase and using that instead.

@rachurikk
Copy link

Hi,

I am using encrypted core data. I struck at this subquery here we are using complex subqueries,I am also facing this issue. ECD is not supporting SUBQUERIES. whether it is fixable in the future.

@oleksandr-k
Copy link

Guys,

Any progress here? Issue seems an old...

@sandeepmagantimobisoft
Copy link

Any further update for the same issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants