public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Giovani Garcia <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Doubt regarding query parameter metadata
Date: Thu, 01 Apr 2021 14:07:00 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <nMumDcadzPE6aT81ly0k9zB6WOJygh4VWyFxmkMthwpZnH7xJcwwOGLZyfFQh6Hassdt3PKBiMmjOSh26X81prUXfEaWRYT1ukI8QBOCfxE=@protonmail.com>
References: <eCpNID63M_eEUgOvB_39vy2LH_FaR9YS3hoUp7fYHbsKOQp9OzOfGglSQV3Cs50ajXJK3DBpZ-fma6qCawNyfX2Py3jnP7IOhr4FTUcbGBk=@protonmail.com>
<[email protected]>
<nMumDcadzPE6aT81ly0k9zB6WOJygh4VWyFxmkMthwpZnH7xJcwwOGLZyfFQh6Hassdt3PKBiMmjOSh26X81prUXfEaWRYT1ukI8QBOCfxE=@protonmail.com>
Giovani Garcia <[email protected]> writes:
>> Is that theexact query you're issuing?
> Yes, that's the exact query.
Oh ... after actually trying the program you sent, I realized you are
looking at the wrong thing, or at least asking about something other
than what I thought you were asking about. You are querying
PQparamtype(), that is, the type of the symbol $1, not the type of
the returned column "key" which is what I thought you meant. As I
explained before, varchar has no operators, particularly not equality;
so "value = $1" is interpreted using the text = text operator, making
it effectively "value::text = $1::text". Thus $1 is resolved as type
text.
regards, tom lane
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Doubt regarding query parameter metadata
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox