forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf82595a
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 parent9f2d194 commitf82595a
1 file changed
+7
-12
lines changedLines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
446 |
| - | |
| 446 | + | |
447 | 447 |
| |
448 | 448 |
| |
449 | 449 |
| |
| |||
1124 | 1124 |
| |
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 |
| - | |
1128 |
| - | |
1129 |
| - | |
1130 |
| - | |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 |
| - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1135 | 1133 |
| |
1136 | 1134 |
| |
1137 | 1135 |
| |
| |||
1166 | 1164 |
| |
1167 | 1165 |
| |
1168 | 1166 |
| |
1169 |
| - | |
1170 |
| - | |
1171 |
| - | |
1172 | 1167 |
| |
1173 | 1168 |
| |
1174 | 1169 |
| |
|
0 commit comments
Comments
(0)