Re: HOWTO pass "default value" to PQexecParams?

From: JiangWei <jw(dot)pgsql(at)sduept(dot)com>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: HOWTO pass "default value" to PQexecParams?
Date: 2006-01-10 00:48:43
Message-ID: 43C3046B.90501@sduept.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Volkan YAZICI wrote:
<blockquote cite="mid20060109104145(dot)GA546(at)alamut" type="cite">
<pre wrap="">On Jan 09 04:18, JiangWei wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">AFAIK, it's not possible to point the field's default 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>
<pre wrap=""><!---->
You mean in the parameter types? </pre>
</blockquote>
Yes.<br>
<blockquote cite="mid20060109104145(dot)GA546(at)alamut" type="cite">
<pre wrap="">If so, is this supported by PostgreSQL?
</pre>
</blockquote>
No. Just an idea.&nbsp; "EXPRESSION_OID" for 'DEFAULT' , ' foo ( id, 2) ',&nbsp;
'm * n + x' ...<br>
<br>
<br>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 1.1 KB

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Murray Cumming 2006-01-10 20:42:43 Re: Detecting postgres servers
Previous Message Gustavo Lopes 2006-01-09 23:03:12 Re: Compiling and linking a Program interfacing with libpq.dll