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

Support Int64, Int32, etc for predicates #92

Open
bridger opened this issue Jul 4, 2017 · 1 comment
Open

Support Int64, Int32, etc for predicates #92

bridger opened this issue Jul 4, 2017 · 1 comment

Comments

@bridger
Copy link

bridger commented Jul 4, 2017

I have a column declared to be of type Int64. However, this line doesn't compile:

let deviceID: Int64 = 3
let deviceUpdate = Update(devices, set: [(devices.name, name)]).where(devices.deviceId == deviceID)

This is because Predicate.swift and Subqueries_GlobalFunctionsAndExtensions.swift expect a generic-sized Int rather than Int64.

As a continuation of #78 I think it makes sense to get rid of the .int(Int) case and add .int64(Int64), etc types.

@xeokeri
Copy link

xeokeri commented Jul 9, 2017

Would suggest support for UInt as well, along with these. As it seems to only support comparisons to signed integers only.

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

3 participants