uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.46k stars 206 forks source link

Fix embedded field detection #972

Closed adriansmares closed 3 months ago

adriansmares commented 3 months ago

This PR fixes the situation in which an embed tag is combined with a set of scanonly fields.

This issue seems to be caused by https://github.com/uptrace/bun/commit/9052fc4cdf3a1e06facae872d0f2c12d0b1e5bfb - see the review comments below.

cc @vmihailenco

vmihailenco commented 3 months ago

@adriansmares thanks for fixing this with a test :+1: