forcedotcom / go-soql

Golang tag library to generate SOQL queries
BSD 3-Clause "New" or "Revised" License
52 stars 12 forks source link

*bool is not supported in buildEqualsClause #9

Closed dmaykov closed 4 years ago

dmaykov commented 4 years ago

There is an issue with boolean conditions in buildEqualsClause: when bool fields are initialized, they default to "false" if a condition is not present, which Is not necessarily desirable behavior. I suggest to add *bool support and ignore those field if they're nil.

atulkc commented 4 years ago

Thanks for filing the issue. I will schedule this to be done in next couple of weeks. Sorry for the delay in response!

atulkc commented 4 years ago

Closed by https://github.com/forcedotcom/go-soql/pull/12