pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC Blank Date convert to null
3+ messages / 3 participants
[nested] [flat]
* ODBC Blank Date convert to null
@ 2013-05-16 20:07 Barry Bell <Barry_Bell@harte-hanks.com>
2013-05-17 03:25 ` Re: ODBC Blank Date convert to null Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 1 reply; 3+ messages in thread
From: Barry Bell @ 2013-05-16 20:07 UTC (permalink / raw)
To: pgsql-odbc
Does anyone know of an setting in the ODBC driver that will convert a blank date to a null?
Thanks
Barry
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ODBC Blank Date convert to null
2013-05-16 20:07 ODBC Blank Date convert to null Barry Bell <Barry_Bell@harte-hanks.com>
@ 2013-05-17 03:25 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2013-05-17 22:37 ` Re: ODBC Blank Date convert to null Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 3+ messages in thread
From: Inoue, Hiroshi @ 2013-05-17 03:25 UTC (permalink / raw)
To: Barry Bell <Barry_Bell@harte-hanks.com>; +Cc: pgsql-odbc
Hi Barry,
(2013/05/17 5:07), Barry Bell wrote:
>
> Does anyone know of an setting in the ODBC driver that will convert a blank date to a null?
Are you using Unicode driver?
Could you send me the Mylog output of the case?
regards,
Hiroshi Inoue
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: ODBC Blank Date convert to null
2013-05-16 20:07 ODBC Blank Date convert to null Barry Bell <Barry_Bell@harte-hanks.com>
2013-05-17 03:25 ` Re: ODBC Blank Date convert to null Inoue, Hiroshi <inoue@tpf.co.jp>
@ 2013-05-17 22:37 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 3+ messages in thread
From: Hiroshi Inoue @ 2013-05-17 22:37 UTC (permalink / raw)
To: Barry Bell <Barry_Bell@harte-hanks.com>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2013-05-17 22:37 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 20:07 ODBC Blank Date convert to null Barry Bell <Barry_Bell@harte-hanks.com>
2013-05-17 03:25 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2013-05-17 22:37 ` Hiroshi Inoue <inoue@tpf.co.jp>
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