Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C17669FBF0C for ; Fri, 23 Feb 2007 07:33:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 87435-02 for ; Fri, 23 Feb 2007 07:32:59 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 6C7969FBD9B for ; Fri, 23 Feb 2007 07:33:03 -0400 (AST) Received: from localhost (unknown [200.46.204.191]) by pgfoundry.org (Postfix) with ESMTP id 7958D2172AE; Fri, 23 Feb 2007 11:33:03 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 90490-01; Fri, 23 Feb 2007 07:33:02 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 07F2C217299; Fri, 23 Feb 2007 11:33:03 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1002204 ] Error in conversion to SQL_NUMERIC_STRUCT Content-type: text/plain; charset=UTF-8 Message-Id: <20070223113303.07F2C217299@pgfoundry.org> Date: Fri, 23 Feb 2007 11:33:03 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/35 X-Sequence-Number: 8659 Bugs item #1002204, was opened at 2007-02-23 11:33 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1002204&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Error in conversion to SQL_NUMERIC_STRUCT Initial Comment: Using psqlodbc 8.02.0200, when fetching data into an SQL_NUMERIC_STRUCT object, the precision is being set to an erronous value (seemingly 'total precision - scale'). To compare/contrast. This is the SQL_NUMERIC_STRUCT being passed into the interface during an insert of the decimal value '123.46': precision = '5' scale = '2' sign = '1' val = ':0' (0x3a, 0x30) This data is correctly inserted into the database as '123.46'. When retrieving from the same column, psqlodbc is giving me this value: precision = '3' scale = '2' sign = '1' val = ':0' (0x3a, 0x30) So, I cannot correctly interpret this return value. I would attach logs, but these show nothing of interest ... not sure what else to provide, but it does seem to be a consistent problem. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1002204&group_id=1000125