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
If a query with a left join returns non-nullable columns after a left join row in the inductive tuple, a crash occurs.
This gist reproduces the crash.
This crashes with fromSql: text column with non-text value: SqlNull:
fromSql: text column with non-text value: SqlNull
person <- select people pet <- leftJoin (\p -> p ! #owner .== person ! #name) $ select pets return (pet :*: person ! #name)
But this doesn't (inductive tuple order is flipped):
person <- select people pet <- leftJoin (\p -> p ! #owner .== person ! #name) $ select pets return (person ! #name :*: pet)
The text was updated successfully, but these errors were encountered:
I think I found the cause of this bug.
https://github.com/valderman/selda/blob/master/selda/src/Database/Selda/SqlRow.hs#L69
then return Nothing
When the whole Row is null, it doesn't consume SqlValue's in the ResultReader state monad. This code should be something like:
Row
SqlValue
ResultReader
then Nothing <$ R (put (drop (nestedCols (Proxy :: Proxy a)) xs))
Sorry, something went wrong.
No branches or pull requests
If a query with a left join returns non-nullable columns after a left join row in the inductive tuple, a crash occurs.
This gist reproduces the crash.
This crashes with
fromSql: text column with non-text value: SqlNull
:But this doesn't (inductive tuple order is flipped):
The text was updated successfully, but these errors were encountered: