From 1326edfbf2fc95049b07726fc42bdf0c1031e61a Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Wed, 14 May 2025 19:46:59 +0500 Subject: [PATCH] Removed LE:-1 tag --- deps/postgresql/fmt_err_msg.patch | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/deps/postgresql/fmt_err_msg.patch b/deps/postgresql/fmt_err_msg.patch index c150ed482..c7ce06cf3 100644 --- a/deps/postgresql/fmt_err_msg.patch +++ b/deps/postgresql/fmt_err_msg.patch @@ -18,16 +18,15 @@ index 5a28b6f..c11f3d9 100644 } diff --git src/interfaces/libpq/fe-protocol3.c src/interfaces/libpq/fe-protocol3.c -index e1fb48b..16fd8b4 100644 +index e1fb48b..7ad19ba 100644 --- src/interfaces/libpq/fe-protocol3.c +++ src/interfaces/libpq/fe-protocol3.c -@@ -1016,6 +1016,58 @@ pqBuildErrorMessage3(PQExpBuffer msg, const PGresult *res, +@@ -1016,6 +1016,54 @@ pqBuildErrorMessage3(PQExpBuffer msg, const PGresult *res, return; } + if (verbosity == PSERRORS_FORMATTED_DEFAULT || verbosity == PSERRORS_FORMATTED_VERBOSE) + { -+ static const char libErr[] = "LE:-1:"; + size_t i; + + // Always included fields @@ -62,10 +61,8 @@ index e1fb48b..16fd8b4 100644 + appendPQExpBuffer(msg, "%c:%d:%s", default_fields[i], (int)strlen(val), val); + } + -+ if (verbosity != PSERRORS_FORMATTED_VERBOSE) { -+ appendBinaryPQExpBuffer(msg, libErr, sizeof(libErr) - 1); ++ if (verbosity != PSERRORS_FORMATTED_VERBOSE) + return; -+ } + + for (i = 0; i < sizeof(verbose_fields) / sizeof(verbose_fields[0]); ++i) + { @@ -73,7 +70,6 @@ index e1fb48b..16fd8b4 100644 + if (val) + appendPQExpBuffer(msg, "%c:%d:%s", verbose_fields[i], (int)strlen(val), val); + } -+ appendBinaryPQExpBuffer(msg, libErr, sizeof(libErr) - 1); + return; + } +