forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8439ee4
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 parent22fce59 commit8439ee4
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
697 | 697 |
| |
698 | 698 |
| |
699 | 699 |
| |
700 |
| - | |
| 700 | + | |
| 701 | + | |
701 | 702 |
| |
702 | 703 |
| |
703 | 704 |
| |
704 | 705 |
| |
705 | 706 |
| |
706 |
| - | |
707 |
| - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
708 | 710 |
| |
709 | 711 |
| |
710 | 712 |
| |
711 | 713 |
| |
712 | 714 |
| |
713 | 715 |
| |
714 |
| - | |
| 716 | + | |
| 717 | + | |
715 | 718 |
| |
716 | 719 |
| |
717 | 720 |
| |
718 | 721 |
| |
719 | 722 |
| |
720 |
| - | |
721 |
| - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
722 | 726 |
| |
723 | 727 |
| |
724 | 728 |
| |
|
0 commit comments
Comments
(0)