Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Dec 31, 2023
1 parent 7ee002e commit 8a57350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg_query_parse_plpgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ PgQueryPlpgsqlParseResult pg_query_parse_plpgsql(const char* input)
func_json = plpgsqlToJSON(func_and_error.func);
plpgsql_free_function_memory(func_and_error.func);

new_out_len = strlen(result.plpgsql_funcs) + strlen(func_json) + 2;
new_out_len = strlen(result.plpgsql_funcs) + strlen(func_json) + 3;
new_out = malloc(new_out_len * sizeof(char));
int n = snprintf(new_out, new_out_len, "%s%s,\n", result.plpgsql_funcs, func_json);
if (n < 0 || n >= new_out_len) {
Expand Down
2 changes: 2 additions & 0 deletions src/postgres/include/port/win32_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
#include <ntstatus.h>
#include <winternl.h>

#undef ERROR

#undef small
#include <process.h>
#include <signal.h>
Expand Down

0 comments on commit 8a57350

Please sign in to comment.