pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Barry Bell <Barry_Bell@harte-hanks.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: ODBC Blank Date convert to null
Date: Sat, 18 May 2013 07:37:43 +0900
Message-ID: <5196B137.6040706@tpf.co.jp> (raw)
In-Reply-To: <4D51A19E0157604B94159573456A98FA2E74BA59@BLUPRD0811MB413.namprd08.prod.outlook.com>
References: <4D51A19E0157604B94159573456A98FA2E74B9FE@BLUPRD0811MB413.namprd08.prod.outlook.com>
	<5195A325.8080301@tpf.co.jp>
	<4D51A19E0157604B94159573456A98FA2E74BA59@BLUPRD0811MB413.namprd08.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (3+ messages)

Message-ID: <5196B137.6040706@tpf.co.jp>
Permalink:  ../5196B137.6040706@tpf.co.jp/
Also on:    postgresql.org/message-id/5196B137.6040706@tpf.co.jp

 · 

reply

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: inoue@tpf.co.jp, Barry_Bell@harte-hanks.com
  Subject: Re: ODBC Blank Date convert to null
  In-Reply-To: <5196B137.6040706@tpf.co.jp>
  References: <4D51A19E0157604B94159573456A98FA2E74B9FE@BLUPRD0811MB413.namprd08.prod.outlook.com> <5195A325.8080301@tpf.co.jp> <4D51A19E0157604B94159573456A98FA2E74BA59@BLUPRD0811MB413.namprd08.prod.outlook.com> <5196B137.6040706@tpf.co.jp>

* 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