X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C715730EE73 for ; Mon, 16 Jun 2003 11:14:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 07294-08 for ; Mon, 16 Jun 2003 08:14:22 -0300 (ADT) Received: from smtp.web.de (smtp01.web.de [217.72.192.180]) by svr1.postgresql.org (Postfix) with ESMTP id F1C1A30EC74 for ; Mon, 16 Jun 2003 08:14:21 -0300 (ADT) Received: from p50818844.dip0.t-ipconnect.de ([80.129.136.68] helo=web.de) by smtp.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.98 #218) id 19RrwL-0000C4-00; Mon, 16 Jun 2003 13:14:21 +0200 Message-ID: <3EEDA699.4000205@web.de> Date: Mon, 16 Jun 2003 13:14:33 +0200 From: Andreas Pflug User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org, Dave Page Subject: ResolveNumericParam problem Content-Type: multipart/mixed; boundary="------------020704000005050405050209" X-Archive-Number: 200306/28 X-Sequence-Number: 3002 This is a multi-part message in MIME format. --------------020704000005050405050209 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------020704000005050405050209 Content-Type: text/plain; name="ResolveNumericParam.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ResolveNumericParam.patch" 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) --------------020704000005050405050209--