pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #9897: Wrong Julian Date through ODBC
5+ messages / 4 participants
[nested] [flat]

* BUG #9897: Wrong Julian Date through ODBC
@ 2014-04-07 18:09  klimm@lohn24.de
  0 siblings, 1 reply; 5+ messages in thread

From: klimm@lohn24.de @ 2014-04-07 18:09 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      9897
Logged by:          Georg Klimm
Email address:      klimm@lohn24.de
PostgreSQL version: 8.4.20
Operating system:   Server @ LINUX, Client @ WIndows
Description:        

SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2

returns 2456597 2456743

first is 2013-10-31 and second the correct 2014-03-26

same with 2014-03-27 or all other dates is working


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #9897: Wrong Julian Date through ODBC
@ 2014-04-09 10:02  Bruce Momjian <bruce@momjian.us>
  parent: klimm@lohn24.de
  0 siblings, 2 replies; 5+ messages in thread

From: Bruce Momjian @ 2014-04-09 10:02 UTC (permalink / raw)
  To: klimm@lohn24.de; +Cc: pgsql-bugs

On Mon, Apr  7, 2014 at 06:09:53PM +0000, klimm@lohn24.de wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      9897
> Logged by:          Georg Klimm
> Email address:      klimm@lohn24.de
> PostgreSQL version: 8.4.20
> Operating system:   Server @ LINUX, Client @ WIndows
> Description:        
> 
> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2
> 
> returns 2456597 2456743

I don't understand these return values.

> first is 2013-10-31 and second the correct 2014-03-26
> 
> same with 2014-03-27 or all other dates is working

I cannot reproduce that failure here:

	test=> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2;
	   date1    |   date2
	------------+------------
	 2014-03-26 | 2014-03-26
	(1 row)

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #9897: Wrong Julian Date through ODBC
@ 2014-04-09 10:12  Georg Klimm Lohn24.de ila GmbH <klimm@lohn24.de>
  0 siblings, 0 replies; 5+ messages in thread

From: Georg Klimm Lohn24.de ila GmbH @ 2014-04-09 10:12 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs

The BASIS Company checks if it is a problem in the Interpreter.

In Delphi we cannot reproduce the error via ODBC
In Business Basic the date was represented as a 4-byte Julian date with the reported error.

I will report if I have new findings

----------------ursprüngliche Nachricht-----------------
Von: Bruce Momjian [bruce@momjian.us ]
An: klimm@lohn24.de
Kopie: pgsql-bugs@postgresql.org
Datum: Wed, 9 Apr 2014 06:02:22 -0400
-------------------------------------------------


> On Mon, Apr 7, 2014 at 06:09:53PM +0000, klimm@lohn24.de wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference: 9897
>> Logged by: Georg Klimm
>> Email address: klimm@lohn24.de
>> PostgreSQL version: 8.4.20
>> Operating system: Server @ LINUX, Client @ WIndows
>> Description:
>>
>> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2
>>
>> returns 2456597 2456743
>
> I don't understand these return values.
>
>> first is 2013-10-31 and second the correct 2014-03-26
>>
>> same with 2014-03-27 or all other dates is working
>
> I cannot reproduce that failure here:
>
> 	test=> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2;
> 	 date1 | date2
> 	------------+------------
> 	 2014-03-26 | 2014-03-26
> 	(1 row)
>
> --
> Bruce Momjian
 http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + Everyone has their own god. +
>
>
> --
> Diese Nachricht wurde auf Viren und andere gefaehrliche Inhalte untersucht.
>
>




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #9897: Wrong Julian Date through ODBC
@ 2014-04-09 10:46  Georg Klimm Lohn24.de ila GmbH <klimm@lohn24.de>
  parent: Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 5+ messages in thread

From: Georg Klimm Lohn24.de ila GmbH @ 2014-04-09 10:46 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs

I just found the problem:

The returned data was converted from 8859-1 to cp850 without caring about the data types :(


----------------ursprüngliche Nachricht-----------------
Von: Bruce Momjian [bruce@momjian.us ]
An: klimm@lohn24.de
Kopie: pgsql-bugs@postgresql.org
Datum: Wed, 9 Apr 2014 06:02:22 -0400
-------------------------------------------------


> On Mon, Apr 7, 2014 at 06:09:53PM +0000, klimm@lohn24.de wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference: 9897
>> Logged by: Georg Klimm
>> Email address: klimm@lohn24.de
>> PostgreSQL version: 8.4.20
>> Operating system: Server @ LINUX, Client @ WIndows
>> Description:
>>
>> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2
>>
>> returns 2456597 2456743
>
> I don't understand these return values.
>
>> first is 2013-10-31 and second the correct 2014-03-26
>>
>> same with 2014-03-27 or all other dates is working
>
> I cannot reproduce that failure here:
>
> 	test=> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2;
> 	 date1 | date2
> 	------------+------------
> 	 2014-03-26 | 2014-03-26
> 	(1 row)
>
> --
> Bruce Momjian
 http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + Everyone has their own god. +
>
>
> --
> Diese Nachricht wurde auf Viren und andere gefaehrliche Inhalte untersucht.
>
>




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #9897: Wrong Julian Date through ODBC
@ 2014-04-09 10:55  Michael Paquier <michael.paquier@gmail.com>
  parent: Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 5+ messages in thread

From: Michael Paquier @ 2014-04-09 10:55 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: klimm@lohn24.de; pgsql-bugs

On Wed, Apr 9, 2014 at 7:02 PM, Bruce Momjian <bruce@momjian.us> wrote:
> On Mon, Apr  7, 2014 at 06:09:53PM +0000, klimm@lohn24.de wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference:      9897
>> Logged by:          Georg Klimm
>> Email address:      klimm@lohn24.de
>> PostgreSQL version: 8.4.20
>> Operating system:   Server @ LINUX, Client @ WIndows
>> Description:
>>
>> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2
>>
>> returns 2456597 2456743
>
> I don't understand these return values.
>
>> first is 2013-10-31 and second the correct 2014-03-26
>>
>> same with 2014-03-27 or all other dates is working
>
> I cannot reproduce that failure here:
>
>         test=> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2;
>            date1    |   date2
>         ------------+------------
>          2014-03-26 | 2014-03-26
>         (1 row)
Georg is mentioning ODBC in the subject. If it could be possible to
get the code sample used with it it would be nice. Perhaps this is
simply a driver issue.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2014-04-09 10:55 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07 18:09 BUG #9897: Wrong Julian Date through ODBC klimm@lohn24.de
2014-04-09 10:02 ` Bruce Momjian <bruce@momjian.us>
2014-04-09 10:46   ` Georg Klimm Lohn24.de ila GmbH <klimm@lohn24.de>
2014-04-09 10:55   ` Michael Paquier <michael.paquier@gmail.com>
2014-04-09 10:12 Re: BUG #9897: Wrong Julian Date through ODBC Georg Klimm Lohn24.de ila GmbH <klimm@lohn24.de>

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