Define OID

Started by frank ernestalmost 12 years ago2 messagesgeneral
Jump to latest
#1frank ernest
doark@mail.com

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello, I can&#39;t seem to find the allowed values for OIDs.</div>

<div>result = PQprepare(parrentcon, insertstmt, insert, 2, /*FIXME*/);</div>

<div>Both arguments are to be of type char * in C and of type varchar(255) in sql.</div>

<div>I looked in the docs but I can&#39;t seem to find where OIDs are enumerated, please point me in the right direction.</div>

<div>&nbsp;</div>

<div>Thanks, David</div>

<div>&nbsp;</div></div></body></html>

#2Andy Colson
andy@squeakycode.net
In reply to: frank ernest (#1)
Re: Define OID

On 7/9/2014 2:41 PM, frank ernest wrote:

Hello, I can't seem to find the allowed values for OIDs.
result = PQprepare(parrentcon, insertstmt, insert, 2, /*FIXME*/);
Both arguments are to be of type char * in C and of type varchar(255) in
sql.
I looked in the docs but I can't seem to find where OIDs are enumerated,
please point me in the right direction.
Thanks, David

You don't need to specify them if you dont want to. Pass NULL and it'll
guess. Did you read the tip just prior to the PQprepare description?

http://www.postgresql.org/docs/9.3/static/libpq-exec.html

-Andy

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general