pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Naoya Anzai <nao-anzai@xc.jp.nec.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Hiroshi Yanagisawa <hir-yanagisawa@ut.jp.nec.com>
Subject: Re: [BUGS] There is a case in which psqlodbc-09.03.0400 returns unterminated strings on Windows.
Date: Wed, 4 Nov 2015 23:09:25 +0900
Message-ID: <563A1195.4090001@dream.email.ne.jp> (raw)
In-Reply-To: <116262CF971C844FB6E793F8809B51C6F149EA@BPXM02GP.gisp.nec.co.jp>
References: <116262CF971C844FB6E793F8809B51C6EF245E@BPXM02GP.gisp.nec.co.jp>
	<56010956.1060108@iki.fi>
	<116262CF971C844FB6E793F8809B51C6EF6319@BPXM02GP.gisp.nec.co.jp>
	<116262CF971C844FB6E793F8809B51C6F149EA@BPXM02GP.gisp.nec.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi,

Oops it was my mistake.
I would take care of it.
BTW why is the last parameter 6?

regards,
Hiroshi Inoue

On 2015/11/04 12:53, Naoya Anzai wrote
> Hi, psqlodbc commiters.
>
>> --- C:/work/psqlodbc-a2def3d/convert.c.orig	Wed Sep 23 16:14:10 2015
>> +++ C:/work/psqlodbc-a2def3d/convert.c	Thu Sep 24 09:01:50 2015
>> @@ -1247,8 +1247,7 @@
>>   			case PG_TYPE_TIMESTAMP:
>>   				/* sprintf(rgbValueBindRow, "%.4d-%.2d-%.2d %.2d:%.2d:%.2d",
>>   					std_time.y, std_time.m, std_time.d, std_time.hh, std_time.mm, std_time.ss);
>> */
>> -				len = stime2timestamp(&std_time, rgbValueBindRow, cbValueMax, FALSE,
>> -									  (int) (cbValueMax - len - 2) );
>> +				len = stime2timestamp(&std_time, rgbValueBindRow, cbValueMax, FALSE, 6 );
>>   				if (len + 1 > cbValueMax)
>>   					result = COPY_RESULT_TRUNCATED;
>>   				break;
>>
>> In PostgreSQL, I think max number of digits of precision is always 6.
> Could someone confirm this?
> I think this is a tiny bug..
>
> Best Regards,
>
> ---
> Naoya Anzai
> Engineering Department
> NEC Solution Inovetors, Ltd.
> E-Mail: nao-anzai@xc.jp.nec.com



-- 
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 (6+ messages)  latest in thread

Message-ID: <563A1195.4090001@dream.email.ne.jp>
Permalink:  ../563A1195.4090001@dream.email.ne.jp/
Also on:    postgresql.org/message-id/563A1195.4090001@dream.email.ne.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: h-inoue@dream.email.ne.jp, nao-anzai@xc.jp.nec.com, hlinnaka@iki.fi, hir-yanagisawa@ut.jp.nec.com
  Subject: Re: [BUGS] There is a case in which psqlodbc-09.03.0400 returns unterminated strings on Windows.
  In-Reply-To: <563A1195.4090001@dream.email.ne.jp>
  References: <116262CF971C844FB6E793F8809B51C6EF245E@BPXM02GP.gisp.nec.co.jp> <56010956.1060108@iki.fi> <116262CF971C844FB6E793F8809B51C6EF6319@BPXM02GP.gisp.nec.co.jp> <116262CF971C844FB6E793F8809B51C6F149EA@BPXM02GP.gisp.nec.co.jp> <563A1195.4090001@dream.email.ne.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