# @Formula trap: an unqualified column inside a sub-select is aliased to the OUTER table
# Hibernate ORM 7.4.17.Final, H2 2.4.240, JDK 25
-- find(BrokenFormula, 1) with sum(qty * unit_price) and no l. prefix
   sql> select bf1_0.id,bf1_0.customer,(select coalesce(sum(bf1_0.qty * bf1_0.unit_price), 0) from invoice_line l where l.invoice_id = bf1_0.id) from invoice bf1_0 where bf1_0.id=?
   => SQLGrammarException: Could not prepare statement [Column "BF1_0.QTY" not found; SQL statement:
