sqlparser-devexpress 2.5.2 → 2.5.3
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/package.json +2 -2
- package/src/core/converter.js +4 -1
- package/tests/parser.test.js +6 -0
package/package.json
CHANGED
package/src/core/converter.js
CHANGED
|
@@ -402,8 +402,11 @@ function DevExpressConverter() {
|
|
|
402
402
|
function resolvePlaceholderFromResultObject(placeholder) {
|
|
403
403
|
if (!resultObject) return `{${placeholder}}`;
|
|
404
404
|
|
|
405
|
+
// Case-insensitive lookup
|
|
406
|
+
const lowerPlaceholder = placeholder.toLowerCase();
|
|
407
|
+
const matchingKey = Object.keys(resultObject).find(key => key.toLowerCase() === lowerPlaceholder);
|
|
405
408
|
|
|
406
|
-
return
|
|
409
|
+
return matchingKey ? resultObject[matchingKey] : `{${placeholder.value ?? placeholder}}`;
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
/**
|
package/tests/parser.test.js
CHANGED