Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdTHp-00041L-DU for pgsql-odbc@arkaria.postgresql.org; Fri, 17 May 2013 22:38:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UdTHo-0006HK-Bt for pgsql-odbc@arkaria.postgresql.org; Fri, 17 May 2013 22:38:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UdTHn-0006HF-ST for pgsql-odbc@postgresql.org; Fri, 17 May 2013 22:38:03 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UdTHe-0006Yl-Ef for pgsql-odbc@postgresql.org; Fri, 17 May 2013 22:38:03 +0000 Received: (qmail 24885 invoked by uid 512); 17 May 2013 22:37:49 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 17 May 2013 22:37:49 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 17 May 2013 22:37:49 -0000 Message-ID: <5196B137.6040706@tpf.co.jp> Date: Sat, 18 May 2013 07:37:43 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Barry Bell CC: "pgsql-odbc@postgresql.org" Subject: Re: ODBC Blank Date convert to null References: <4D51A19E0157604B94159573456A98FA2E74B9FE@BLUPRD0811MB413.namprd08.prod.outlook.com> <5195A325.8080301@tpf.co.jp> <4D51A19E0157604B94159573456A98FA2E74BA59@BLUPRD0811MB413.namprd08.prod.outlook.com> In-Reply-To: <4D51A19E0157604B94159573456A98FA2E74BA59@BLUPRD0811MB413.namprd08.prod.outlook.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.5 (--) 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 Barry, Thanks. Isn't qo_deliver timestamp type? If so, there's no such version that converts blank timestamp to null. I've built a trial version. Could you please try the dll on testing for 9.1.0300 at http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/index.html setting the Extra Opts = 0x8? regards, Hiroshi Inoue (2013/05/17 22:08), Barry Bell wrote: > Error is (when putting a blank date into field qo_deliver > "ERROR: invalid input syntax for type timestamp: "";\ aError while executing the query" > > vfp9 30e8-2f90 ENTER SQLExecDirect > HSTMT 0x0036C4D8 > UCHAR * 0x0258E488 [ -3] "UPDATE HITS.DLPOINTS SET QO_DELIVER=? WHERE QO_ID=?\ 0" > SDWORD -3 > > vfp9 30e8-2f90 EXIT SQLExecDirect with return code -1 (SQL_ERROR) > HSTMT 0x0036C4D8 > UCHAR * 0x0258E488 [ -3] "UPDATE HITS.DLPOINTS SET QO_DELIVER=? WHERE QO_ID=?\ 0" > SDWORD -3 > > DIAG [22007] ERROR: invalid input syntax for type timestamp: ""; > Error while executing the query (7) > > vfp9 30e8-2f90 ENTER SQLErrorW > HENV 0x02298E28 > HDBC 0x0036C1F8 > HSTMT 0x0036C4D8 > WCHAR * 0x0018E130 > SDWORD * 0x0018E178 > WCHAR * 0x0018DD30 > SWORD 512 > SWORD * 0x0018E17C > > vfp9 30e8-2f90 EXIT SQLErrorW with return code 0 (SQL_SUCCESS) > HENV 0x02298E28 > HDBC 0x0036C1F8 > HSTMT 0x0036C4D8 > WCHAR * 0x0018E130 [ 5] "22007" > SDWORD * 0x0018E178 (7) > WCHAR * 0x0018DD30 [ 83] "ERROR: invalid input syntax for type timestamp: "";\ aError while executing the query" > SWORD 512 > SWORD * 0x0018E17C (83) > > vfp9 30e8-2f90 ENTER SQLErrorW > HENV 0x02298E28 > HDBC 0x0036C1F8 > HSTMT 0x0036C4D8 > WCHAR * 0x0018E130 > SDWORD * 0x0018E178 > WCHAR * 0x0018DD30 > SWORD 512 > SWORD * 0x0018E17C -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc