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

From JiangWei
Subject HOWTO pass "default value" to PQexecParams ?
Date
Msg-id 43BDC4EF.7090408@sduept.com
Whole thread Raw
Responses Re: HOWTO pass "default value" to PQexecParams?
List pgsql-interfaces
-- SQL Script

Create Table test (   id int4 not null,   name text default '<noname>'
);


-- C

PQexec (conn, "INSERT INTO test(id, name) VALUES (100,default)" ); // OK.

PQexecParams (conn, "INSERT INTO test(id, name) VALUES ($1, $2)" ); // 
$1=100, $2= ????


pgsql-interfaces by date:

Previous
From: Volkan YAZICI
Date:
Subject: Re: Convertion of date/time binary format to text format
Next
From: JiangWei
Date:
Subject: [C API] Is there a nice way to get table/column name on some error ?