Skip to content

Commit 187d037

Browse files
committed
Fix compatibility with pg15.
Upstream commit 791b1b71da35d9d4264f72a87e4078b85a2fcfb4 renamed parse_analyze() to parse_analyze_fixedparams(), so adopt that new name and add a macro for backward compatibility.
1 parent cc45343 commit 187d037

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/plpgsql_check.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ typedef uint32 pc_queryid;
1515
#define NOQUERYID (0)
1616
#endif
1717

18+
#if PG_VERSION_NUM < 150000
19+
#define parse_analyze_fixedparams parse_analyze
20+
#endif
21+
1822
enum
1923
{
2024
PLPGSQL_CHECK_ERROR,

src/profiler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ profiler_get_dyn_queryid(PLpgSQL_execstate *estate, PLpgSQL_expr *expr, query_pa
21602160
snapshot_set = true;
21612161
}
21622162

2163-
query = parse_analyze(parsetree, query_string, paramtypes, nparams, NULL);
2163+
query = parse_analyze_fixedparams(parsetree, query_string, paramtypes, nparams, NULL);
21642164

21652165
if (snapshot_set)
21662166
PopActiveSnapshot();

0 commit comments

Comments
 (0)