dbTalk Databases Forums  

[SQL] Fwd: Extended query protocol and exact types matches.

mailing.database.pgsql-sql mailing.database.pgsql-sql


Discuss [SQL] Fwd: Extended query protocol and exact types matches. in the mailing.database.pgsql-sql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dmitriy Igrishin
 
Posts: n/a

Default [SQL] Fwd: Extended query protocol and exact types matches. - 12-09-2010 , 04:10 PM






Hey sql@,

---------- Forwarded message ----------
From: Dmitriy Igrishin <dmitigr (AT) gmail (DOT) com>
Date: 2010/12/9
Subject: Extended query protocol and exact types matches.
To: pgsql-general (AT) postgresql (DOT) 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/s...onv-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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.