forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44c2163
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 parent3f735ae commit44c2163
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
737 | 737 |
| |
738 | 738 |
| |
739 | 739 |
| |
740 |
| - | |
| 740 | + | |
| 741 | + | |
741 | 742 |
| |
742 | 743 |
| |
743 | 744 |
| |
744 | 745 |
| |
745 | 746 |
| |
746 | 747 |
| |
747 | 748 |
| |
748 |
| - | |
749 |
| - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
750 | 752 |
| |
751 | 753 |
| |
752 | 754 |
| |
753 | 755 |
| |
754 | 756 |
| |
755 |
| - | |
| 757 | + | |
| 758 | + | |
756 | 759 |
| |
757 | 760 |
| |
758 | 761 |
| |
| |||
764 | 767 |
| |
765 | 768 |
| |
766 | 769 |
| |
767 |
| - | |
768 |
| - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
769 | 773 |
| |
770 | 774 |
| |
771 | 775 |
| |
|
0 commit comments
Comments
(0)