forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita57695d
committed
Fix detection of unfinished Unicode surrogate pair at end of string.
The U&'...' and U&"..." syntaxes silently discarded a surrogate pairstart (that is, a code between U+D800 and U+DBFF) if it occurred atthe very end of the string. This seems like an obvious oversight,since we throw an error for every other invalid combination of surrogatecharacters, including the very same situation in E'...' syntax.This has been wrong since the pair processing was added (in 9.0),so back-patch to all supported branches.Discussion:https://postgr.es/m/19113.1482337898@sss.pgh.pa.us1 parent1f2cfd2 commita57695d
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1395 | 1395 |
| |
1396 | 1396 |
| |
1397 | 1397 |
| |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1398 | 1405 |
| |
| 1406 | + | |
1399 | 1407 |
| |
1400 | 1408 |
| |
1401 | 1409 |
| |
|
0 commit comments
Comments
(0)