Re: failed Assert() in utf8_and_iso8859_1.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: failed Assert() in utf8_and_iso8859_1.c
Date
Msg-id 9175.1031858581@sss.pgh.pa.us
Whole thread Raw
In response to failed Assert() in utf8_and_iso8859_1.c  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: failed Assert() in utf8_and_iso8859_1.c
List pgsql-hackers
Karel Zak <zakkr@zf.jcu.cz> writes:
>  In the server log file is:
> TRAP: FailedAssertion("!(len > 0)", File: "utf8_and_iso8859_1.c", Line: 45)

Hmm, looks like all the conversion_procs files have
Assert(len > 0);

Surely that should be Assert(len >= 0)?

I also notice that I neglected to change PG_RETURN_INT32(0) to
PG_RETURN_VOID() in these files.  That's only cosmetic, but
probably it should be done.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.3beta and ecpg
Next
From: Justin Clift
Date:
Subject: Looking for more "big name" places that use PostgreSQL