Commit 44c6c60
committed
Remove unsafe encoding facilities from query parser
These have been inherited from the psql query parser, but are not
required as the encoding is always known to be safe on the backend side.
Hence, there is no need to perform a transformation of the query string.
The code was not relying on that, actually, PG_SQL_ASCII being given of
query_scan_setup() (actually, it was 0).
Let's remove this code, to ease future maintenance. Like 37a06b4,
this is backpatched down to v17 where the query parser has been
introduced.
Backpatch-through: 171 parent 11458d1 commit 44c6c60
4 files changed
Lines changed: 9 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
| 2047 | + | |
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
830 | | - | |
| 829 | + | |
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
834 | 833 | | |
835 | | - | |
| 834 | + | |
836 | 835 | | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | 839 | | |
841 | 840 | | |
842 | 841 | | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | 842 | | |
848 | 843 | | |
849 | 844 | | |
850 | 845 | | |
851 | 846 | | |
852 | 847 | | |
853 | 848 | | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | 849 | | |
859 | 850 | | |
860 | 851 | | |
| |||
958 | 949 | | |
959 | 950 | | |
960 | 951 | | |
961 | | - | |
962 | | - | |
| 952 | + | |
963 | 953 | | |
964 | 954 | | |
965 | 955 | | |
| |||
974 | 964 | | |
975 | 965 | | |
976 | 966 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
| 967 | + | |
| 968 | + | |
996 | 969 | | |
997 | 970 | | |
998 | 971 | | |
| |||
1018 | 991 | | |
1019 | 992 | | |
1020 | 993 | | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 994 | + | |
| 995 | + | |
1040 | 996 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 8 | | |
23 | 9 | | |
24 | 10 | | |
| |||
81 | 67 | | |
82 | 68 | | |
83 | 69 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 70 | | |
88 | | - | |
89 | | - | |
90 | 71 | | |
91 | 72 | | |
92 | 73 | | |
| |||
0 commit comments