-
Notifications
You must be signed in to change notification settings - Fork 38
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
BUG: query does not work when the SRKObject definition contains an enum field. #138
Comments
Hi, if you pass in 'LCTimeScale.SECOND.rawValue'. I would expect that to work. The OBJC code will essentially accept Any?, but will not be able to support the typed enum because it can't inspect the object as it's out of the module scope. |
@editfmah it tried your suggestion
but the result is still wrong
Hmmm i kinda find it odd. I make the enum as Int because I will need it to be objc anyway. |
@editfmah changing the property to Int seems to work
Seems that we can conclude that where query for table with enum fields does not work For now I have a workaround. But I suppose this is still a bug. Thanks! |
Context: I am trying to use this framework in react-native. essentially I will have to create a bridging header and add the sharkORM header there. it is running good and was able to insert to the database. But I have a weird problem
then tried using the countBy function
output(1000 is the total record)
seems to me that this is not being included in the query
timeScale = ?
The text was updated successfully, but these errors were encountered: