pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitriy Igrishin <dmitigr@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Fwd: Extended query protocol and exact types matches.
Date: Fri, 10 Dec 2010 10:53:33 +0300
Message-ID: <AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikKz-nTZqo7z4xjNSRDsy-kK7dSnK2m7hGXsHos@mail.gmail.com>
References: <AANLkTikjRo4Mik19xLSzVCZ4jDdsvvshRfX1wsWCx4bd@mail.gmail.com>
	<AANLkTikKz-nTZqo7z4xjNSRDsy-kK7dSnK2m7hGXsHos@mail.gmail.com>

---------- Forwarded message ----------
From: Dmitriy Igrishin <dmitigr@gmail.com>
Date: 2010/12/10
Subject: Fwd: Extended query protocol and exact types matches.
To: postgres list <pgsql-sql@postgresql.org>


Hey sql@,


---------- Forwarded message ----------
From: Dmitriy Igrishin <dmitigr@gmail.com>
Date: 2010/12/9
Subject: Extended query protocol and exact types matches.
To: pgsql-general@postgresql.org


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.





-- 
// Dmitriy.





-- 
// Dmitriy.

view thread (11+ messages)  latest in thread

Message-ID: <AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com>
Permalink:  ../AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com

 · 

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: pgsql-sql@postgresql.org
  Cc: dmitigr@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: Fwd: Extended query protocol and exact types matches.
  In-Reply-To: <AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@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