From: Dmitriy Igrishin <dmitigr@gmail.com>
To: pgsql-general@postgresql.org
Subject: Extended query protocol and exact types matches.
Date: Thu, 9 Dec 2010 21:24:21 +0300
Message-ID: <AANLkTikjRo4Mik19xLSzVCZ4jDdsvvshRfX1wsWCx4bd@mail.gmail.com> (raw)
Hey general@,
To be assured and just for calmness.
Problem:
1. CREATE TABLE test_tab (id integer, dat varchar(64));
2. INSERT INTO test_tab VALUES($1, $2) via PQexecParams,
where paramTypes[0] == OID of bigint,
paramTypes[1] == OID of text.
Questions:
Whether this case falls to
http://www.postgresql.org/docs/9.0/static/typeconv-query.html ?
Is such cases safe or it is recommended (best) to specify a
OIDs which are exact matches ?
PS.
I know, that queries like SELECT $1 does not work without
specifying OID or without rewriting it to e.g. SELECT $1::text.
Thanks.
--
// Dmitriy.
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: pgsql-sql@postgresql.org
Cc: dmitigr@gmail.com, pgsql-general@postgresql.org
Subject: Re: Extended query protocol and exact types matches.
In-Reply-To: <AANLkTikjRo4Mik19xLSzVCZ4jDdsvvshRfX1wsWCx4bd@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox