I believe from v4.5.1 (and currently v4.6.0) the lib has problem with count and innerJoin. For example:
select {
for p in table'<{| Id: string; GameId: string |}> "Players" do
innerJoin g in table'<{| Id: string |}> "Games" on (p.GameId = g.Id)
count "*" "Value"
} |> conn.Select<{|Value: int64|}>
I used the Deconstructor to see the raw SQL query:
SELECT `Players`.`Value` FROM `Players` INNER JOIN Games ON `Games`.`Id`=`Players`.`GameId`
Indeed the SQL query did not contain the count(*) statement.
I believe from v4.5.1 (and currently v4.6.0) the lib has problem with
count
andinnerJoin
. For example:I used the
Deconstructor
to see the raw SQL query:Indeed the SQL query did not contain the
count(*)
statement.Note:
innerJoin
it still works well.Hope you will consider this.