forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit785cfee
committed
Fix incorrect encoding-aware name truncation in makeArrayTypeName().
truncate_identifier won't do anything if the passed-in strlen is alreadyless than NAMEDATALEN, which it always would be given the strlcpy usage.This has been broken since the arrays-of-composite-types code went in.Arguably truncate_identifier is suffering from excessive optimizationand should always process the string, but for the moment I'll take themore localized patch.Per bug #4987.1 parenta05a4b4 commit785cfee
1 file changed
+11
-7
lines changedLines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
686 | 686 |
| |
687 | 687 |
| |
688 | 688 |
| |
689 |
| - | |
690 |
| - | |
| 689 | + | |
| 690 | + | |
691 | 691 |
| |
| 692 | + | |
692 | 693 |
| |
693 | 694 |
| |
694 | 695 |
| |
695 | 696 |
| |
696 | 697 |
| |
697 |
| - | |
698 |
| - | |
699 | 698 |
| |
700 | 699 |
| |
701 | 700 |
| |
702 | 701 |
| |
703 | 702 |
| |
704 |
| - | |
705 |
| - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
706 | 710 |
| |
707 | 711 |
| |
708 | 712 |
| |
|
0 commit comments
Comments
(0)