Re: HOWTO pass "default value" to PQexecParams? - Mailing list pgsql-interfaces

From JiangWei
Subject Re: HOWTO pass "default value" to PQexecParams?
Date
Msg-id 43C3046B.90501@sduept.com
Whole thread Raw
In response to Re: HOWTO pass "default value" to PQexecParams?  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List pgsql-interfaces
Volkan YAZICI wrote: <blockquote cite="mid20060109104145.GA546@alamut" type="cite"><pre wrap="">On Jan 09 04:18,
JiangWeiwrote: </pre><blockquote type="cite"><blockquote type="cite"><pre wrap="">AFAIK, it's not possible to point the
field'sdefault value using a
 
special value in the related array member. Because, you cannot declare
any special value in the array: NULL will be treated as NULL and other
char values as is.     </pre></blockquote><pre wrap="">We can declare a specialized oid for this.
</pre></blockquote><prewrap="">
 
You mean in the parameter types? </pre></blockquote> Yes.<br /><blockquote cite="mid20060109104145.GA546@alamut"
type="cite"><prewrap="">If so, is this supported by PostgreSQL? </pre></blockquote> No. Just an idea.  "EXPRESSION_OID"
for'DEFAULT' , ' foo ( id, 2) ',  'm * n + x' ...<br /><br /><br /> 

pgsql-interfaces by date:

Previous
From: Gustavo Lopes
Date:
Subject: Re: Compiling and linking a Program interfacing with libpq.dll
Next
From: Murray Cumming
Date:
Subject: Re: Detecting postgres servers