forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita8ae123
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 parent89fcea1 commita8ae123
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1435 | 1435 |
| |
1436 | 1436 |
| |
1437 | 1437 |
| |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1438 | 1445 |
| |
1439 | 1446 |
| |
1440 | 1447 |
| |
|
0 commit comments
Comments
(0)