Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

fix: モデルを直す #32

Closed
tufusa opened this issue Sep 3, 2023 · 0 comments · Fixed by #34
Closed

fix: モデルを直す #32

tufusa opened this issue Sep 3, 2023 · 0 comments · Fixed by #34
Assignees

Comments

@tufusa
Copy link
Collaborator

tufusa commented Sep 3, 2023

JOIN等でカラム名が重複したときにどちらにもnullが入ってしまうバグがWrangler D1側に存在する(以下参照)

現在これによりモデルが正しい値を返していない
明示的にカラム名のASを指定することでこれを回避できる

room: {
  id: rooms.id.getSQL().as("roomId"),
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant