forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita4424c5
committed
Remove unnecessary restrictions about RowExprs in transformAExprIn().
When the existing code here was written, it made sense to special-caseRowExprs because that was the only way that we could handle row comparisonsat all. Now that we have record_eq() and arrays of composites, the genericlogic for "scalar" types will in fact work on RowExprs too, so there's noreason to throw error for combinations of RowExprs and other ways offorming composite values, nor to ignore the possibility of using aScalarArrayOpExpr. But keep using the old logic when comparing twoRowExprs, for consistency with the main transformAExprOp() logic. (Thisallows some cases with not-quite-identical rowtypes to succeed, so we mightget push-back if we removed it.) Per bug #8198 from Rafal Rzepecki.Back-patch to all supported branches, since this works fine as far back as8.4.Rafal Rzepecki and Tom Lane1 parentf3839ea commita4424c5
File tree
3 files changed
+93
-24
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+93
-24
lines changedLines changed: 24 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
889 | 889 |
| |
890 | 890 |
| |
891 | 891 |
| |
892 |
| - | |
| 892 | + | |
893 | 893 |
| |
894 | 894 |
| |
895 | 895 |
| |
| |||
994 | 994 |
| |
995 | 995 |
| |
996 | 996 |
| |
997 |
| - | |
| 997 | + | |
998 | 998 |
| |
999 | 999 |
| |
1000 | 1000 |
| |
| |||
1093 | 1093 |
| |
1094 | 1094 |
| |
1095 | 1095 |
| |
1096 |
| - | |
1097 | 1096 |
| |
1098 | 1097 |
| |
1099 | 1098 |
| |
| |||
1106 | 1105 |
| |
1107 | 1106 |
| |
1108 | 1107 |
| |
1109 |
| - | |
1110 |
| - | |
1111 |
| - | |
1112 |
| - | |
1113 |
| - | |
1114 |
| - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1115 | 1113 |
| |
1116 |
| - | |
1117 |
| - | |
| 1114 | + | |
| 1115 | + | |
1118 | 1116 |
| |
1119 | 1117 |
| |
1120 |
| - | |
1121 | 1118 |
| |
1122 | 1119 |
| |
1123 | 1120 |
| |
1124 | 1121 |
| |
1125 | 1122 |
| |
1126 |
| - | |
1127 | 1123 |
| |
1128 | 1124 |
| |
1129 | 1125 |
| |
| |||
1133 | 1129 |
| |
1134 | 1130 |
| |
1135 | 1131 |
| |
1136 |
| - | |
| 1132 | + | |
1137 | 1133 |
| |
1138 |
| - | |
| 1134 | + | |
1139 | 1135 |
| |
1140 | 1136 |
| |
1141 | 1137 |
| |
| |||
1151 | 1147 |
| |
1152 | 1148 |
| |
1153 | 1149 |
| |
1154 |
| - | |
1155 |
| - | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1156 | 1157 |
| |
1157 | 1158 |
| |
1158 | 1159 |
| |
| |||
1203 | 1204 |
| |
1204 | 1205 |
| |
1205 | 1206 |
| |
1206 |
| - | |
| 1207 | + | |
| 1208 | + | |
1207 | 1209 |
| |
1208 |
| - | |
1209 |
| - | |
1210 |
| - | |
1211 |
| - | |
1212 |
| - | |
1213 |
| - | |
| 1210 | + | |
1214 | 1211 |
| |
1215 | 1212 |
| |
1216 | 1213 |
| |
1217 | 1214 |
| |
1218 | 1215 |
| |
1219 | 1216 |
| |
1220 | 1217 |
| |
| 1218 | + | |
| 1219 | + | |
1221 | 1220 |
| |
1222 | 1221 |
| |
1223 | 1222 |
| |
1224 | 1223 |
| |
1225 | 1224 |
| |
| 1225 | + | |
1226 | 1226 |
| |
1227 | 1227 |
| |
1228 | 1228 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
208 | 227 |
| |
209 | 228 |
| |
210 | 229 |
| |
| |||
217 | 236 |
| |
218 | 237 |
| |
219 | 238 |
| |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
220 | 249 |
| |
221 | 250 |
| |
222 | 251 |
| |
| |||
249 | 278 |
| |
250 | 279 |
| |
251 | 280 |
| |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
252 | 301 |
| |
253 | 302 |
| |
254 | 303 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 |
| |
99 | 104 |
| |
100 | 105 |
| |
101 | 106 |
| |
102 | 107 |
| |
103 | 108 |
| |
104 | 109 |
| |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
105 | 115 |
| |
106 | 116 |
| |
107 | 117 |
| |
108 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
109 | 129 |
| |
110 | 130 |
| |
111 | 131 |
| |
|
0 commit comments
Comments
(0)