From: Clemens Ladisch <clemens@ladisch.de>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: ODBC Driver 9->11, troubles with dates/NULL...
Date: Mon, 22 Jul 2019 15:26:07 +0200
Message-ID: <d76c867b-1c76-9ec0-cb7b-57b7702fac96@ladisch.de> (raw)
In-Reply-To: <20190722101953.GF2802@sv.lnf.it>
References: <20190722101953.GF2802@sv.lnf.it>
Marco Gaiarin wrote:
> ERRORE: sintassi di input non valida per il tipo date: ""
> ISTRUZIONE: INSERT INTO PROTOCOLLI ( ... DATA_REGIST ...) VALUES ( ... E'' ... )
>
> while the table expect a non-NULL:
>
> Tabella "public.protocolli"
> Colonna | Tipo | Modificatori
> ------------------+------------------------+--------------
> ...
> data_regist | date | non null
Why are you mentioning NULL? This is an empty string, which is not a valid date.
Are you sure that the ODBC driver version makes a difference?
Where should a valid date value come from, if not from the application?
Regards,
Clemens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: clemens@ladisch.de
Subject: Re: ODBC Driver 9->11, troubles with dates/NULL...
In-Reply-To: <d76c867b-1c76-9ec0-cb7b-57b7702fac96@ladisch.de>
References: <20190722101953.GF2802@sv.lnf.it> <d76c867b-1c76-9ec0-cb7b-57b7702fac96@ladisch.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox