pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1002204 ] Error in conversion to SQL_NUMERIC_STRUCT
Date: Fri, 23 Feb 2007 11:33:03 +0000 (UTC)
Message-ID: <20070223113303.07F2C217299@pgfoundry.org> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <20070223113303.07F2C217299@pgfoundry.org>
Permalink:  ../20070223113303.07F2C217299@pgfoundry.org/
Also on:    postgresql.org/message-id/20070223113303.07F2C217299@pgfoundry.org

 · 

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: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1002204 ] Error in conversion to SQL_NUMERIC_STRUCT
  In-Reply-To: <20070223113303.07F2C217299@pgfoundry.org>
  References: <20070223113303.07F2C217299@pgfoundry.org>

* 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