Commit cb1b0df
committed
Use local helper for identifier case rewrite in varlena
The previous revision used two in-place copy patterns after
identifier_case_transform(): strncpy() in one path and memcpy()+NUL
termination in another. Keeping both patterns makes behavior easier to
drift and harder to review.
Introduce a varlena-local helper for this rewrite path, keep
identifier_case_transform() unchanged for other callers, and centralize
the post-transform copy and cleanup in one place.1 parent be7f6e4 commit cb1b0df
1 file changed
+15
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
2753 | 2754 | | |
2754 | 2755 | | |
2755 | 2756 | | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
2756 | 2769 | | |
2757 | 2770 | | |
2758 | 2771 | | |
| |||
2871 | 2884 | | |
2872 | 2885 | | |
2873 | 2886 | | |
2874 | | - | |
2875 | | - | |
2876 | | - | |
2877 | | - | |
2878 | | - | |
| 2887 | + | |
2879 | 2888 | | |
2880 | 2889 | | |
2881 | 2890 | | |
| |||
3218 | 3227 | | |
3219 | 3228 | | |
3220 | 3229 | | |
3221 | | - | |
3222 | | - | |
3223 | | - | |
3224 | | - | |
3225 | | - | |
3226 | | - | |
| 3230 | + | |
3227 | 3231 | | |
3228 | 3232 | | |
3229 | 3233 | | |
| |||
0 commit comments