duplicate line in ExecEvalJsonCoercionFinish

Started by jian he6 months ago5 messages
#1jian he
jian.universality@gmail.com

hi.

ExecEvalJsonCoercionFinish duplicate line:
jsestate->escontext.error_occurred = false;
jsestate->escontext.error_occurred = false;

https://git.postgresql.org/cgit/postgresql.git/tree/src/backend/executor/execExprInterp.c#n5230

#2Tender Wang
tndrwang@gmail.com
In reply to: jian he (#1)
Re: duplicate line in ExecEvalJsonCoercionFinish

jian he <jian.universality@gmail.com> 于2025年7月17日周四 07:39写道:

hi.

ExecEvalJsonCoercionFinish duplicate line:
jsestate->escontext.error_occurred = false;
jsestate->escontext.error_occurred = false;

https://git.postgresql.org/cgit/postgresql.git/tree/src/backend/executor/execExprInterp.c#n5230

Good catch. It was introduced by this commit 231b7d670b21.
Add Amit to the cc list.

--
Thanks,
Tender Wang

#3Richard Guo
guofenglinux@gmail.com
In reply to: Tender Wang (#2)
Re: duplicate line in ExecEvalJsonCoercionFinish

On Thu, Jul 17, 2025 at 9:52 AM Tender Wang <tndrwang@gmail.com> wrote:

jian he <jian.universality@gmail.com> 于2025年7月17日周四 07:39写道:

ExecEvalJsonCoercionFinish duplicate line:
jsestate->escontext.error_occurred = false;
jsestate->escontext.error_occurred = false;

Good catch. It was introduced by this commit 231b7d670b21.
Add Amit to the cc list.

Nice catch! The two duplicate statements were introduced in separate
commits; looks like a copy-paste oversight in the later one.

Thanks
Richard

#4Amit Langote
amitlangote09@gmail.com
In reply to: Richard Guo (#3)
Re: duplicate line in ExecEvalJsonCoercionFinish

On Thu, Jul 17, 2025 at 10:01 AM Richard Guo <guofenglinux@gmail.com> wrote:

On Thu, Jul 17, 2025 at 9:52 AM Tender Wang <tndrwang@gmail.com> wrote:

jian he <jian.universality@gmail.com> 于2025年7月17日周四 07:39写道:

ExecEvalJsonCoercionFinish duplicate line:
jsestate->escontext.error_occurred = false;
jsestate->escontext.error_occurred = false;

Good catch. It was introduced by this commit 231b7d670b21.
Add Amit to the cc list.

Nice catch! The two duplicate statements were introduced in separate
commits; looks like a copy-paste oversight in the later one.

Oops, you're right -- I must have copy-pasted without noticing the
duplicate. Thanks Jian for catching that. Will fix.

--
Thanks, Amit Langote

#5Amit Langote
amitlangote09@gmail.com
In reply to: Amit Langote (#4)
Re: duplicate line in ExecEvalJsonCoercionFinish

On Thu, Jul 17, 2025 at 12:03 PM Amit Langote <amitlangote09@gmail.com> wrote:

On Thu, Jul 17, 2025 at 10:01 AM Richard Guo <guofenglinux@gmail.com> wrote:

On Thu, Jul 17, 2025 at 9:52 AM Tender Wang <tndrwang@gmail.com> wrote:

jian he <jian.universality@gmail.com> 于2025年7月17日周四 07:39写道:

ExecEvalJsonCoercionFinish duplicate line:
jsestate->escontext.error_occurred = false;
jsestate->escontext.error_occurred = false;

Good catch. It was introduced by this commit 231b7d670b21.
Add Amit to the cc list.

Nice catch! The two duplicate statements were introduced in separate
commits; looks like a copy-paste oversight in the later one.

Oops, you're right -- I must have copy-pasted without noticing the
duplicate. Thanks Jian for catching that. Will fix.

Done. Thanks all.

--
Thanks, Amit Langote