Fwd: Extended query protocol and exact types matches.
От | Dmitriy Igrishin |
---|---|
Тема | Fwd: Extended query protocol and exact types matches. |
Дата | |
Msg-id | AANLkTinv+ebdrvoRT1RyFwufFVi0Y=oxK_tDPih8AHz7@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Fwd: Extended query protocol and exact types matches.
|
Список | pgsql-hackers |
---------- 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@,
--
// Dmitriy.
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.
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.
В списке pgsql-hackers по дате отправления: