forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf9f31aa
committed
Make parseNodeString() C idiom compatible with Visual Studio 2015.
Between v15 and now, this function's "else if" chain grew from 252 linesto 592 lines, exceeding a compiler limit that manifests as "fatal errorC1026: parser stack overflow, program too complex (compiling source filesrc/backend/nodes/readfuncs.c)". Use "if (...) return ...;" instead.Reviewed by Tom Lane, Peter Eisentraut and Michael Paquier. Not allreviewers endorse this.Discussion:https://postgr.es/m/20230607185458.GA1334487@rfd.leadboat.com1 parent4327f6c commitf9f31aa
2 files changed
+4
-12
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
927 |
| - | |
| 927 | + | |
928 | 928 |
| |
929 |
| - | |
| 929 | + | |
930 | 930 |
| |
931 | 931 |
| |
932 | 932 |
| |
|
Lines changed: 2 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
697 | 697 |
| |
698 | 698 |
| |
699 | 699 |
| |
700 |
| - | |
701 |
| - | |
702 | 700 |
| |
703 | 701 |
| |
704 | 702 |
| |
| |||
709 | 707 |
| |
710 | 708 |
| |
711 | 709 |
| |
712 |
| - | |
713 |
| - | |
714 | 710 |
| |
715 |
| - | |
716 |
| - | |
717 |
| - | |
718 |
| - | |
719 |
| - | |
720 | 711 |
| |
721 |
| - | |
| 712 | + | |
| 713 | + | |
722 | 714 |
| |
723 | 715 |
| |
724 | 716 |
| |
|
0 commit comments
Comments
(0)