forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit409f530
committed
Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.
The function had been interpreting SQL_ASCII messages as UTF8, throwingan error when they were invalid UTF8. The new behavior is consistentwith pg_do_encoding_conversion(). This affects LOG_DESTINATION_STDERRand LOG_DESTINATION_EVENTLOG, which will send untranslated bytes towrite() and ReportEventA(). On buildfarm member bowerbird, enablinglog_connections caused an error whenever the role name was not validUTF8. Back-patch to 9.4 (all supported versions).Discussion:https://postgr.es/m/20190512015615.GD1124997@rfd.leadboat.com1 parentc3d1131 commit409f530
File tree
3 files changed
+11
-10
lines changed- src
- backend/utils/mb
- bin
- pg_dump/t
- scripts/t
3 files changed
+11
-10
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
| 1060 | + | |
1060 | 1061 |
| |
1061 | 1062 |
| |
1062 | 1063 |
| |
1063 | 1064 |
| |
1064 |
| - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1065 | 1070 |
| |
1066 | 1071 |
| |
1067 | 1072 |
| |
| |||
1086 | 1091 |
| |
1087 | 1092 |
| |
1088 | 1093 |
| |
1089 |
| - | |
| 1094 | + | |
1090 | 1095 |
| |
1091 | 1096 |
| |
1092 | 1097 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
| 17 | + | |
| 18 | + | |
21 | 19 |
| |
22 | 20 |
| |
23 | 21 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 10 | + | |
| 11 | + | |
14 | 12 |
| |
15 | 13 |
| |
16 | 14 |
| |
|
0 commit comments
Comments
(0)