Skip to content

Commit be04a26

Browse files
Make G-8310 less strict, closes #182 (accept some false negatives)
1 parent 4671a99 commit be04a26

File tree

1 file changed

+12
-0
lines changed
  • docs/4-language-usage/8-patterns/3-validating-input-parameter-size

1 file changed

+12
-0
lines changed

docs/4-language-usage/8-patterns/3-validating-input-parameter-size/g-8310.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
This technique raises an error (`value_error`) which may not be handled in the called program unit. This is the right way to do it, as the error is not within this unit but when calling it, so the caller should handle the error.
99

10+
To limit the number of false positives, only the following data types used in parameters should be considered:
11+
12+
- `nchar`
13+
- `number`
14+
- `nvarchar2`
15+
- `interval year to month`
16+
- `interval day to second`
17+
- `numeric`
18+
- `decimal`
19+
- `dec`
20+
- `%type`
21+
1022
## Example (bad)
1123

1224
``` sql

0 commit comments

Comments
 (0)