Re: BUG #19699: LIKE with a trailing escape fails to raise SQLSTATE 22025 for empty input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: imchifan(at)163(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19699: LIKE with a trailing escape fails to raise SQLSTATE 22025 for empty input
Date: 2026-09-25 05:05:54
Message-ID: 1848966.1790312754@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

shihao zhong <zhong950419(at)gmail(dot)com> writes:
+ * ... this is cheap enough to repeat in
+ * recursive calls.

This claim is unsubstantiated. Even if it were, I fail to understand
why it's necessary to expend any cycles whatsoever on this point.
Who cares if we don't throw that error?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Zsolt Parragi 2026-09-25 07:45:17 Re: autovacuum: automatically propagate updated parameters
Previous Message shihao zhong 2026-09-25 04:59:59 Re: BUG #19699: LIKE with a trailing escape fails to raise SQLSTATE 22025 for empty input