- Notifications
You must be signed in to change notification settings - Fork5k
Commitfc36ac5
committed
Fix COPY FROM when database encoding is SQL_ASCII.
In the codepath when no encoding conversion is required, the check forincomplete character at the end of input incorrectly used serverencoding's max character length, instead of the client's. Usually theserver and client encodings are the same when we're not performingencoding conversion, but SQL_ASCII is an exception.In the passing, also fix some outdated comments that still talked aboutthe old COPY protocol. It was removed in v14.Per bug #17501 from Vitaly Voronov. Backpatch to v14 where this wasintroduced.Discussion:https://www.postgresql.org/message-id/17501-128b1dd039362ae6@postgresql.org1 parentf6b6a8f commitfc36ac5
1 file changed
+7
-12
lines changedLines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
444 | 444 |
| |
445 | 445 |
| |
446 | 446 |
| |
447 |
| - | |
| 447 | + | |
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
| |||
1172 | 1172 |
| |
1173 | 1173 |
| |
1174 | 1174 |
| |
1175 |
| - | |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
1181 |
| - | |
1182 |
| - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1183 | 1181 |
| |
1184 | 1182 |
| |
1185 | 1183 |
| |
| |||
1214 | 1212 |
| |
1215 | 1213 |
| |
1216 | 1214 |
| |
1217 |
| - | |
1218 |
| - | |
1219 |
| - | |
1220 | 1215 |
| |
1221 | 1216 |
| |
1222 | 1217 |
| |
|
0 commit comments
Comments
(0)