Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpYKU-00043R-75 for pgsql-odbc@arkaria.postgresql.org; Mon, 22 Jul 2019 13:26:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpYKT-0001eC-32 for pgsql-odbc@arkaria.postgresql.org; Mon, 22 Jul 2019 13:26:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpYKS-0001e5-S8 for pgsql-odbc@lists.postgresql.org; Mon, 22 Jul 2019 13:26:12 +0000 Received: from webclient5.webclient5.de ([2a01:4f8:212:88::2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpYKQ-00089C-F0 for pgsql-odbc@lists.postgresql.org; Mon, 22 Jul 2019 13:26:12 +0000 Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id 8E9A455817B0 for ; Mon, 22 Jul 2019 15:26:08 +0200 (CEST) Subject: Re: ODBC Driver 9->11, troubles with dates/NULL... To: pgsql-odbc@lists.postgresql.org References: <20190722101953.GF2802@sv.lnf.it> From: Clemens Ladisch Message-ID: Date: Mon, 22 Jul 2019 15:26:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190722101953.GF2802@sv.lnf.it> Content-Type: text/plain; charset=us-ascii Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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