uranio 1.1.2 → 1.1.4
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/.uranio/package.json
CHANGED
|
@@ -94,11 +94,9 @@ export class PostgreSQLClient {
|
|
|
94
94
|
|
|
95
95
|
// Replace each :paramName with $1, $2, etc.
|
|
96
96
|
for (const key of sortedKeys) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
convertedQuery = convertedQuery.replace(namedParam, `$${paramIndex}`);
|
|
101
|
-
}
|
|
97
|
+
// Replace ALL occurrences of this named parameter with the SAME positional parameter
|
|
98
|
+
const regex = new RegExp(`:${key}\\b`, 'g');
|
|
99
|
+
convertedQuery = convertedQuery.replace(regex, `$${paramIndex}`);
|
|
102
100
|
paramValues.push(namedParams[key]);
|
|
103
101
|
paramIndex++;
|
|
104
102
|
}
|