You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
( Id intprimary key autoincrement
, Email string(254) unique
, Name string(64) null
);
createtableComments
( Id intprimary key autoincrement
, AuthorId intreferences Users(Id)
, Comment string(512)
);
createindexIX_Comments_AuthorIdon Comments
(AuthorId);
-- initial dataInsert into Users (email, name)
Values ('a@outlook.com', 'Mr. A'), ('b@gmail.com', 'Mr. B');
Insert into Comments (authorId, comment)
Values (1, 'This is cool'), (1, 'This is not cool');
The code below fails with Data is Null. This method or property cannot be called on Null values.
module Tests =
let print x = printf "Output: %A" x
type LeftJoinWithManyFails = SQL<""" Select u.id, many comments (c.id, c.comment) From Users u left Join Comments c on u.id = c.authorId""">
let leftJoinWithManyFails () =LeftJoinWithManyFails.Command().Execute (new ConnectionContext()) |> print
The expectation was to have comments as an empty list. Is this possible?
The text was updated successfully, but these errors were encountered:
I have been getting into some new hobbies lately and haven't worked on this much, but this issue is definitely egregious so I have committed a fix in cbd096d .
Given
The code below fails with
Data is Null. This method or property cannot be called on Null values.
The expectation was to have
comments
as an empty list. Is this possible?The text was updated successfully, but these errors were encountered: