Skip to content

Commit

Permalink
fix: infer when unresolved (#1005)
Browse files Browse the repository at this point in the history
Some queries based upon sub selects would be considered `_unresolved`,
but `infer` is able to make them `resolved`.

Co-authored-by: Johannes Vogel <[email protected]>
  • Loading branch information
BobdenOs and johannes-vogel authored Feb 4, 2025
1 parent ef2f817 commit 2fb0bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hana/lib/HANAService.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class HANAService extends SQLService {
async onSELECT(req) {
const { query, data } = req

if (!query.target) {
if (!query.target || query.target._unresolved) {
try { this.infer(query) } catch { /**/ }
}
if (!query.target || query.target._unresolved) {
Expand Down

0 comments on commit 2fb0bdf

Please sign in to comment.