We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
select $ from $ \(jobs,jobUpdates) -> distinctOn [ don (jobUpdates ^. JobUpdateJobId) ] $ do orderBy [ desc (jobUpdates ^. JobUpdateAt) , desc (jobUpdates ^. JobUpdateJobId) ] where_ (jobs ^. JobCompanyId ==. val companyk) where_ (jobUpdates ^. JobUpdateJobId ==. jobs ^. JobId) return jobUpdates
with the error message
uncaught exception: SqlError (SqlError {sqlState = "42P10", sqlExecStatus = FatalError, sqlErrorMsg = "SELECT DISTINCT ON expressions must match initial ORDER BY expressions", sqlErrorDetail = "", sqlErrorHint = ""})
I understand why this is happening, but it'd be really nice if typechecked code producing invalid SQL was less of a regular occurrence in my workflow.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
with the error message
I understand why this is happening, but it'd be really nice if typechecked code producing invalid SQL was less of a regular occurrence in my workflow.
The text was updated successfully, but these errors were encountered: