- Notifications
You must be signed in to change notification settings - Fork5
Commit465e09d
committed
Add support for more extensive testing of raw_expression_tree_walker().
If RAW_EXPRESSION_COVERAGE_TEST is defined, do a no-op tree walk overevery basic DML statement submitted to parse analysis. If we'd had thisin place earlier, bug #14153 would have been caught by buildfarm testing.The difficulty is that raw_expression_tree_walker() is only used inlimited cases involving CTEs (particularly recursive ones), so it'svery easy for an oversight in it to not be noticed during testing of aseemingly-unrelated feature.The type of error we can expect to catch with this is complete omissionof a node type from raw_expression_tree_walker(), and perhaps alsorecursion into a field that doesn't contain a node tree, though thatwould be an unlikely mistake. It won't catch failure to add new fieldsthat need to be recursed into, unfortunately.I'll go enable this on one or two of my own buildfarm animals oncebug #14153 is dealt with.Discussion: <27861.1464040417@sss.pgh.pa.us>1 parent8a4930e commit465e09d
File tree
3 files changed
+55
-2
lines changed- src
- backend
- nodes
- parser
- include
3 files changed
+55
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2991 | 2991 |
| |
2992 | 2992 |
| |
2993 | 2993 |
| |
2994 |
| - | |
2995 |
| - | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
2996 | 2998 |
| |
2997 | 2999 |
| |
2998 | 3000 |
| |
|
Lines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 |
| |
78 | 81 |
| |
79 | 82 |
| |
| |||
220 | 223 |
| |
221 | 224 |
| |
222 | 225 |
| |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
223 | 245 |
| |
224 | 246 |
| |
225 | 247 |
| |
| |||
2713 | 2735 |
| |
2714 | 2736 |
| |
2715 | 2737 |
| |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + |
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
276 | 283 |
| |
277 | 284 |
| |
278 | 285 |
| |
|
0 commit comments
Comments
(0)