Commit 93e8ff8
committed
Refactor logic to check for ASCII-only characters in string
The same logic was present for collation commands, SASLprep and
pgcrypto, so this removes some code.
Author: Michael Paquier
Reviewed-by: Stephen Frost, Heikki Linnakangas
Discussion: https://postgr.es/m/X9womIn6rne6Gud2@paquier.xyz1 parent 4e1ee79 commit 93e8ff8Copy full SHA for 93e8ff8
File tree
Expand file treeCollapse file tree
5 files changed
+26
-52
lines changedOpen diff view settings
Filter options
- contrib/pgcrypto
- src
- backend/commands
- common
- include/common
Expand file treeCollapse file tree
5 files changed
+26
-52
lines changedOpen diff view settings
Collapse file
contrib/pgcrypto/pgp-pgsql.c
Copy file name to clipboardExpand all lines: contrib/pgcrypto/pgp-pgsql.c+3-15Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
| ||
92 | 93 | |
93 | 94 | |
94 | 95 | |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
108 | 96 | |
109 | 97 | |
110 | 98 | |
| ||
814 | 802 | |
815 | 803 | |
816 | 804 | |
817 | | - |
| 805 | + |
818 | 806 | |
819 | 807 | |
820 | 808 | |
| ||
836 | 824 | |
837 | 825 | |
838 | 826 | |
839 | | - |
| 827 | + |
840 | 828 | |
841 | 829 | |
842 | 830 | |
|
Collapse file
src/backend/commands/collationcmds.c
Copy file name to clipboardExpand all lines: src/backend/commands/collationcmds.c+4-20Lines changed: 4 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
30 | 31 | |
31 | 32 | |
32 | 33 | |
| ||
286 | 287 | |
287 | 288 | |
288 | 289 | |
289 | | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | 290 | |
307 | 291 | |
308 | 292 | |
| ||
396 | 380 | |
397 | 381 | |
398 | 382 | |
399 | | - |
| 383 | + |
400 | 384 | |
401 | 385 | |
402 | 386 | |
| ||
477 | 461 | |
478 | 462 | |
479 | 463 | |
480 | | - |
| 464 | + |
481 | 465 | |
482 | 466 | |
483 | 467 | |
| ||
623 | 607 | |
624 | 608 | |
625 | 609 | |
626 | | - |
| 610 | + |
627 | 611 | |
628 | 612 | |
629 | 613 | |
|
Collapse file
+2-17Lines changed: 2 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
| ||
47 | 48 | |
48 | 49 | |
49 | 50 | |
50 | | - |
51 | 51 | |
52 | 52 | |
53 | 53 | |
| ||
1019 | 1019 | |
1020 | 1020 | |
1021 | 1021 | |
1022 | | - |
1023 | | - |
1024 | | - |
1025 | | - |
1026 | | - |
1027 | | - |
1028 | | - |
1029 | | - |
1030 | | - |
1031 | | - |
1032 | | - |
1033 | | - |
1034 | | - |
1035 | | - |
1036 | | - |
1037 | 1022 | |
1038 | 1023 | |
1039 | 1024 | |
| ||
1076 | 1061 | |
1077 | 1062 | |
1078 | 1063 | |
1079 | | - |
| 1064 | + |
1080 | 1065 | |
1081 | 1066 | |
1082 | 1067 | |
|
Collapse file
+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
92 | 92 | |
93 | 93 | |
94 | 94 | |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
95 | 111 | |
96 | 112 | |
97 | 113 | |
|
Collapse file
src/include/common/string.h
Copy file name to clipboardExpand all lines: src/include/common/string.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
|
0 commit comments