pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ResolveNumericParam problem
2+ messages / 2 participants
[nested] [flat]

* ResolveNumericParam problem
@ 2003-06-16 11:14  Andreas Pflug <Andreas.Pflug@web.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andreas Pflug @ 2003-06-16 11:14 UTC (permalink / raw)
  To: pgsql-odbc; Dave Page <dpage@vale-housing.co.uk>

When converting the value zero, the result is wrong: it is converted to 
"" or ".", depending on the precision.
The attached patch insures a zero to be added, so this converts to "0" 
or "0."

Regards,
Andreas

Attachments:

ResolveNumericParam.patch (text/plain, 225B) download RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/convert.c,v retrieving revision 1.99 diff -r1.99 convert.c 2381c2381,2383 < if (ns->scale > 0) --- > if (!newlen) > chrform[newlen++] = '0'; > if (ns->scale > 0)
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: ResolveNumericParam problem
@ 2003-06-18 12:59  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2003-06-18 12:59 UTC (permalink / raw)
  To: Andreas Pflug <Andreas.Pflug@web.de>; pgsql-odbc

Thanks, patch applied.

Regards, Dave.

> -----Original Message-----
> From: Andreas Pflug [mailto:Andreas.Pflug@web.de] 
> Sent: 16 June 2003 12:15
> To: pgsql-odbc@postgresql.org; Dave Page
> Subject: ResolveNumericParam problem
> 
> 
> When converting the value zero, the result is wrong: it is 
> converted to 
> "" or ".", depending on the precision.
> The attached patch insures a zero to be added, so this 
> converts to "0" 
> or "0."
> 
> Regards,
> Andreas
> 
> 



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


end of thread, other threads:[~2003-06-18 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16 11:14 ResolveNumericParam problem Andreas Pflug <Andreas.Pflug@web.de>
2003-06-18 12:59 Re: ResolveNumericParam problem Dave Page <dpage@vale-housing.co.uk>

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