From: Andreas Pflug <Andreas.Pflug@web.de>
To: pgsql-odbc@postgresql.org
To: Dave Page <dpage@vale-housing.co.uk>
Subject: ResolveNumericParam problem
Date: Mon, 16 Jun 2003 13:14:33 +0200
Message-ID: <3EEDA699.4000205@web.de> (raw)
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)
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: Andreas.Pflug@web.de, dpage@vale-housing.co.uk
Subject: Re: ResolveNumericParam problem
In-Reply-To: <3EEDA699.4000205@web.de>
References: <3EEDA699.4000205@web.de>
* 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