@salesforce/lds-runtime-mobile 1.134.0 → 1.134.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -7226,15 +7226,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
7226
7226
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
7227
7227
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
7228
7228
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
7229
- //if we only have a null in/nin then dont add the IN (y, z, ...)
7230
- if (valueBinding.length > 0) {
7231
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
7232
- }
7233
- else {
7234
- sql = `${includesNull ? nullCheck : ''}`;
7235
- }
7229
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
7236
7230
  binding.push(...valueBinding);
7237
7231
  if (includesNull) {
7232
+ sql = `(${sql} OR ${nullCheck})`;
7238
7233
  binding.push(null);
7239
7234
  }
7240
7235
  }
@@ -15750,4 +15745,4 @@ register({
15750
15745
  });
15751
15746
 
15752
15747
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15753
- // version: 1.134.0-8083d5a8b
15748
+ // version: 1.134.2-b6a56164c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.134.0",
3
+ "version": "1.134.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -7226,15 +7226,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
7226
7226
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
7227
7227
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
7228
7228
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
7229
- //if we only have a null in/nin then dont add the IN (y, z, ...)
7230
- if (valueBinding.length > 0) {
7231
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
7232
- }
7233
- else {
7234
- sql = `${includesNull ? nullCheck : ''}`;
7235
- }
7229
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
7236
7230
  binding.push(...valueBinding);
7237
7231
  if (includesNull) {
7232
+ sql = `(${sql} OR ${nullCheck})`;
7238
7233
  binding.push(null);
7239
7234
  }
7240
7235
  }
@@ -15750,4 +15745,4 @@ register({
15750
15745
  });
15751
15746
 
15752
15747
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15753
- // version: 1.134.0-8083d5a8b
15748
+ // version: 1.134.2-b6a56164c