SELECT [.Manager_SystemUsers].ID FROM SystemUsers AS [.Manager_SystemUsers] WHERE [.Manager_SystemUsers].[ID] = [Teams].[Manager]
AND
Subqa177c3[.Manager_SystemUsers].[DateArchived] IS NULL) OR EXISTS (
SELECT [.Manager_SystemUsers].ID FROM SystemUsers AS [.Manager_SystemUsers] WHERE [.Manager_SystemUsers].[ID] = [Teams].[Manager]
AND
Subqa177c3[.Manager_SystemUsers].[DateArchived] > @Subqa177c3_Manager_SystemUsers_DateArchived))
also at the end of the query the paremeters: section would also show up as having incorrect syntax
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
when using the .WhereIn method on a IDatabaseQuery the generated sql statement is malformed and as such returns an error an example :
.WhereIn(timeIssue => timeIssue.User, Database.Of().Where(x => !x.Manager.DateArchived.HasValue || x.Manager.DateArchived > LocalTime.Now)
would generates
SELECT [.Manager_SystemUsers].ID FROM SystemUsers AS [.Manager_SystemUsers] WHERE [.Manager_SystemUsers].[ID] = [Teams].[Manager] AND Subqa177c3[.Manager_SystemUsers].[DateArchived] IS NULL) OR EXISTS ( SELECT [.Manager_SystemUsers].ID FROM SystemUsers AS [.Manager_SystemUsers] WHERE [.Manager_SystemUsers].[ID] = [Teams].[Manager] AND Subqa177c3[.Manager_SystemUsers].[DateArchived] > @Subqa177c3_Manager_SystemUsers_DateArchived))
also at the end of the query the paremeters: section would also show up as having incorrect syntax