Skip to content

Commit 6c67e4e

Browse files
committed
Clarify the overriding of paramTypes
1 parent 34aa88a commit 6c67e4e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/paramTypes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ An object with the following following optional fields:
7171
while in Transact-SQL `:"name"` and `:[name]` would work instead.
7272
See [identifier syntax wiki page][] for information about differences in support quoted identifiers.
7373

74+
Note that using this config will override the by default supported placeholders types.
75+
For example PL/SQL supports numbered (`:1`) and named (`:name`) placeholders by default.
76+
When you provide the following `paramTypes` configuration:
77+
78+
```js
79+
paramTypes: { positional: true, numbered: [], named: [':', '@'] }
80+
```
81+
82+
The result will be:
83+
84+
- `?` positional placeholders are supported
85+
- `:1` numbered placeholders are no more supported
86+
- `:name` is still supported and `@name` named placeholder is also supported.
87+
7488
## Parameter value substitution
7589

7690
This config option can be used together with [params][] to substitute the placeholders with actual values.

0 commit comments

Comments
 (0)