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 1hpVQL-0003da-LY for pgsql-odbc@arkaria.postgresql.org; Mon, 22 Jul 2019 10:20:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpVQK-0003f8-BO for pgsql-odbc@arkaria.postgresql.org; Mon, 22 Jul 2019 10:20:04 +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 1hpVQJ-0003XZ-Rf for pgsql-odbc@lists.postgresql.org; Mon, 22 Jul 2019 10:20:04 +0000 Received: from smtp1.ngi.it ([88.149.128.112]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpVQF-0006SG-0Y for pgsql-odbc@postgresql.org; Mon, 22 Jul 2019 10:20:01 +0000 Received: from tank.sv.lnf.it (unknown [88.147.114.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.ngi.it (Postfix) with ESMTPS id 5EFF461657 for ; Mon, 22 Jul 2019 12:19:55 +0200 (CEST) Authentication-Results: smtp1.ngi.it; dkim=pass (1024-bit key; unprotected) header.d=sv.lnf.it header.i=@sv.lnf.it header.b="cCgHZJl+"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sv.lnf.it; s=2017; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cm4jmPn+k/3XMBFTQ2N4zZhODmxy5qBV3bQKw1R1kZI=; b=cCgHZJl+1B5/AhySh/PK3z0m80 +aTJPJKo3vqXawwqrc1MPXjdNAt+txLMC+FkVMNEYIpmDBZT9PYSFUL8nE4GLKv6muKRoeQNLlyvZ GWVJ6/DcHCUxegqlQYmfpavw394QbCZJ5U1iefkmB8ythhVaPtUWihUYqNinUFatFPFA=; Received: from [10.5.1.3] (helo=vdmsv1.ad.fvg.lnf.it) by tank.sv.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpVQA-000AQ6-H2 for pgsql-odbc@postgresql.org; Mon, 22 Jul 2019 12:19:54 +0200 Received: from [10.5.1.44] (helo=hermione.sv.lnf.it) by vdmsv1.ad.fvg.lnf.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpVQ9-0000zK-J6 for pgsql-odbc@postgresql.org; Mon, 22 Jul 2019 12:19:53 +0200 Received: by hermione.sv.lnf.it (Postfix, from userid 1000) id 72777A0016C; Mon, 22 Jul 2019 12:19:53 +0200 (CEST) Date: Mon, 22 Jul 2019 12:19:53 +0200 From: Marco Gaiarin To: pgsql-odbc@postgresql.org Subject: ODBC Driver 9->11, troubles with dates/NULL... Message-ID: <20190722101953.GF2802@sv.lnf.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 'Organization: Associazione La Nostra Famiglia - Polo FVG' 'From: Marco Gaiarin ' User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk After long time, i've decided to upgrade ODBC driver from version 09.03.0100 to version 11.01.0000. A big jump, indeed. I'm using an old application written in Centura, that with 09.03.0100 works as expected. But with '11.01.0000' no. Throw the error: 2019-07-22 10:04:28 CEST [19212-1] barbaradg@regproto ERRORE: sintassi di= input non valida per il tipo date: "" al carattere 524 2019-07-22 10:04:28 CEST [19212-2] barbaradg@regproto ISTRUZIONE: INSERT = INTO PROTOCOLLI ( NUM_ORDINE, ANNO_REGIST, DATA_REGIST, SEDE, PADIGLIONE, = DATA_ARRIVO, COD_PROV, PROVENIENZA, DATA_ATTO_RIC, NUM_ATTO_RIC, ESTR_CDES= C_AR, ESTR_ATTO_RIC, NUM_ALLEGATI_AR, DATA_SPEDIZIONE, COD_IND, INDIRIZZO= , ESTR_CDESC_AS, ESTR_ATTO_SPED, NUM_ALLEGATI_AS, NUM_RIF_PROT_AR, NUM_RI= F_PROT_AS, CLASS_ARCH_AR, CLASS_ARCH_AS, SPESE_POSTALI_AR, SPESE_POSTALI_AS= , COD_SETTORE_AR, COD_SETTORE_AS, COD_OPERATORE_AR, COD_OPERATORE_AS ) = VALUES ( E'2163'::float8 , E'2019'::float8 , E'' = , NULL , NULL , NULL , E'' , E''= , NULL , E'' , E'' , E'' = , E'' , E'' , E'' , E's= ometext' , E'' , E'sometext' , E'' = , E'' , E'' , E'' , E'' = , NULL , NULL , E'sometext' = , E'' , E'sometext' , E'' ) error are relative to the first date field, 'DATA_REGIST', where the input is: E'' while the table expect a non-NULL: Tabella "public.protocolli" Colonna | Tipo | Modificatori=20 ------------------+------------------------+-------------- num_ordine | integer | non null anno_regist | integer | non null data_regist | date | non null sede | integer |=20 padiglione | integer |=20 data_arrivo | date |=20 cod_prov | character varying(5) |=20 provenienza | character varying(250) |=20 data_atto_ric | date |=20 num_atto_ric | character varying(20) |=20 estr_cdesc_ar | character varying(5) |=20 estr_atto_ric | character varying(250) |=20 num_allegati_ar | character varying(10) |=20 data_spedizione | date |=20 cod_ind | character varying(5) |=20 indirizzo | character varying(250) |=20 estr_cdesc_as | character varying(5) |=20 estr_atto_sped | character varying(250) |=20 num_allegati_as | character varying(10) |=20 num_rif_prot_ar | character varying(10) |=20 num_rif_prot_as | character varying(10) |=20 class_arch_ar | character varying(20) |=20 class_arch_as | character varying(20) |=20 spese_postali_ar | double precision |=20 spese_postali_as | double precision |=20 cod_settore_ar | character varying(50) |=20 cod_settore_as | character varying(50) |=20 cod_operatore_ar | character varying(50) |=20 cod_operatore_as | character varying(50) |=20 Indici: "protocolli_pkey" PRIMARY KEY, btree (anno_regist, num_ordine) So, seems correct to me. Seems that somewhere 'treat empty dates as null' is set, but... where? Thanks. --=20 dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.= it/ Polo FVG - Via della Bont=E0, 7 - 33078 - San Vito al Tagliamento= (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842= 797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)