You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the upgrade, all queries with dynamic OR parameters crash if one of the parameters is undefined. We have a few queries like that and they all fail.
I've started digging in, and traced it down to processSQLQueryIR in preprocessor-sql.js. When you filter down for usedParams, parameters with a value of undefined might need to be skipped?
constusedParams=queryIR.params.filter((p)=>p.nameinqueryIR.usedParamSet);…leti=1;constintervals=[];for(constusedParamofusedParams){…// 🚨 The problem is here, as locs is undefined for this usedParamusedParam.locs.forEach……}
UPDATE: Turns out that filtering for undefined values doesn't change anything, as locs is still missing for valid parameters passed to the query.
Any idea why this could be happening, i.e. why is locs in each usedParam missing?
The text was updated successfully, but these errors were encountered:
Given a simple query with dynamic parameters as such:
Before upgrading to
1.0.1
from0.13
, the generated query ran without issues. The query is run via (simplified):With the upgrade, all queries with dynamic
OR
parameters crash if one of the parameters is undefined. We have a few queries like that and they all fail.I've started digging in, and traced it down to
processSQLQueryIR
inpreprocessor-sql.js
. When you filter down forusedParams
, parameters with a value ofundefined
might need to be skipped?UPDATE: Turns out that filtering for
undefined
values doesn't change anything, aslocs
is still missing for valid parameters passed to the query.Any idea why this could be happening, i.e. why is
locs
in eachusedParam
missing?The text was updated successfully, but these errors were encountered: