Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)

Started by Ranier Vilela10 months ago4 messageshackers
Jump to latest
#1Ranier Vilela
ranier.vf@gmail.com

Hi.

In the function *PQcancelCreate* there is a copy-and-past thinko.
The pointer that must be checked is cancelConn.

Trivial patch attached.

best regards,
Ranier Vilela

Attachments:

fix-copy-and-past-thinko-fe-cancel.patchapplication/octet-stream; name=fix-copy-and-past-thinko-fe-cancel.patchDownload+1-1
#2Daniel Gustafsson
daniel@yesql.se
In reply to: Ranier Vilela (#1)
Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)

On 17 Jun 2025, at 15:40, Ranier Vilela <ranier.vf@gmail.com> wrote:

In the function *PQcancelCreate* there is a copy-and-past thinko.
The pointer that must be checked is cancelConn.

Trivial patch attached.

Nice catch, will fix.

--
Daniel Gustafsson

#3Ranier Vilela
ranier.vf@gmail.com
In reply to: Daniel Gustafsson (#2)
Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)

Em ter., 17 de jun. de 2025 às 10:42, Daniel Gustafsson <daniel@yesql.se>
escreveu:

On 17 Jun 2025, at 15:40, Ranier Vilela <ranier.vf@gmail.com> wrote:

In the function *PQcancelCreate* there is a copy-and-past thinko.
The pointer that must be checked is cancelConn.

Trivial patch attached.

Nice catch, will fix.

v1 attached, thanks.

best regards,
Ranier Vilela

Attachments:

v1-fix-copy-and-past-thinko-fe-cancel.patchapplication/octet-stream; name=v1-fix-copy-and-past-thinko-fe-cancel.patchDownload+1-1
#4Ranier Vilela
ranier.vf@gmail.com
In reply to: Daniel Gustafsson (#2)
Re: Fix copy-and-past thinko (src/interfaces/libpq/fe-cancel.c)

Em ter., 17 de jun. de 2025 às 10:42, Daniel Gustafsson <daniel@yesql.se>
escreveu:

On 17 Jun 2025, at 15:40, Ranier Vilela <ranier.vf@gmail.com> wrote:

In the function *PQcancelCreate* there is a copy-and-past thinko.
The pointer that must be checked is cancelConn.

Trivial patch attached.

Nice catch, will fix.

Thanks for the commit, Daniel.

best regards,
Ranier Vilela