How to insert default value with libpq?

From: sanpi+postgersql(at)homecomputing(dot)fr
To: pgsql-interfaces(at)lists(dot)postgresql(dot)org
Subject: How to insert default value with libpq?
Date: 2020-04-27 13:02:38
Message-ID: e7a30543-1b9f-b137-253f-ff9cc9aac893@homecomputing.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

I would like to insert the default value for a field with libpq, but
inserting null or "default" doesn’t work.

I attached a simple example also available here
https://gitlab.com/snippets/1970590

Is it possible?

Attachment Content-Type Size
main.c text/x-csrc 988 bytes

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Eisentraut 2020-04-28 14:25:48 Re: How to insert default value with libpq?
Previous Message Tony Locke 2020-04-16 15:43:57 New run() method to simplify things in pg8000