forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit148052d
committed
Fix length checking for Unicode identifiers containing escapes (U&"...").
We used the length of the input string, not the de-escaped string, asthe trigger for NAMEDATALEN truncation. AFAICS this would only resultin sometimes printing a phony truncation warning; but it's just luckthat there was no worse problem, since we were violating the API specfor truncate_identifier(). Per bug #9204 from Joshua Yanovski.This has been wrong since the Unicode-identifier support was added,so back-patch to all supported branches.1 parent16b06c9 commit148052d
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
696 | 696 |
| |
697 | 697 |
| |
698 | 698 |
| |
699 |
| - | |
| 699 | + | |
| 700 | + | |
700 | 701 |
| |
701 | 702 |
| |
702 | 703 |
| |
703 | 704 |
| |
704 | 705 |
| |
705 |
| - | |
706 |
| - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
707 | 709 |
| |
708 | 710 |
| |
709 | 711 |
| |
710 | 712 |
| |
711 | 713 |
| |
712 | 714 |
| |
713 |
| - | |
| 715 | + | |
| 716 | + | |
714 | 717 |
| |
715 | 718 |
| |
716 | 719 |
| |
717 | 720 |
| |
718 | 721 |
| |
719 |
| - | |
720 |
| - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
721 | 725 |
| |
722 | 726 |
| |
723 | 727 |
| |
|
0 commit comments
Comments
(0)