Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aVHih-0003bk-Ml for pgsql-odbc@arkaria.postgresql.org; Mon, 15 Feb 2016 11:53:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aVHig-0007HX-P8 for pgsql-odbc@arkaria.postgresql.org; Mon, 15 Feb 2016 11:53:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aVHiK-0006sp-Fw for pgsql-odbc@postgresql.org; Mon, 15 Feb 2016 11:53:12 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aVHiC-0001FH-PU for pgsql-odbc@postgresql.org; Mon, 15 Feb 2016 11:53:10 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id E02736114; Mon, 15 Feb 2016 20:53:01 +0900 (JST) Subject: Re: PostgreSQL: Inserting NULL values adds empty string. To: "Venkatesan, Sekhar" References: Cc: "pgsql-odbc@postgresql.org" From: "Inoue, Hiroshi" Message-ID: <56C1BC21.60100@dream.email.ne.jp> Date: Mon, 15 Feb 2016 20:53:05 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi, Aren't the fields date or timestamp? If so, there is an option to convert from null to empty string. regards, Hiroshi Inoue On 2016/02/14 22:13, Venkatesan, Sekhar wrote: > Hi Folks, > > I am using PostgreSQL 9.4 odbc driver to talk to 9.4 postgreSQL server. > I see that when inserting NULL values into DB is adding empty string in the database only in windows. > The same insert is adding NULL values into database when linux odbc driver is used to connect to linux database. > Is there any configuration in odbc driver end or in server to retain the null values or is it a bug? > If it is not and is an expected behavior, how to fix it in the application? > > Thanks, > Sekhar > -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc