Skip site navigation (1) Skip section navigation (2)

[ psqlodbc-Bugs-1002204 ] Error in conversion to SQL_NUMERIC_STRUCT

From: <noreply(at)pgfoundry(dot)org>
To: noreply(at)pgfoundry(dot)org
Subject: [ psqlodbc-Bugs-1002204 ] Error in conversion to SQL_NUMERIC_STRUCT
Date: 2008-12-30 22:43:17
Message-ID: 20081230224317.665CF17ADE45@pgfoundry.org (view raw or flat)
Thread:
Lists: pgsql-odbc
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: Closed
Resolution: None
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Hiroshi Inoue (hinoue)
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.

----------------------------------------------------------------------

Comment By: Dominic Smith (dominic_smith)
Date: 2008-11-28 11:08

Message:
Terribly sorry - it seems I never got back on this issue. The updated snapshot DLL works for this problem. 

----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2007-02-27 00:46

Message:
Could you try the snapshot dll at
  http://www.geocities.jp/inocchichichi/psqlodbc/index.html
?

regards,
Hiroshi Inoue

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1002204&group_id=1000125

pgsql-odbc by date

Next:From: noreplyDate: 2008-12-30 22:44:38
Subject: [ psqlodbc-Bugs-1002054 ] SQLSetDescField with SQL_DESC_INDICATOR_PTR has no effect.
Previous:From: noreplyDate: 2008-12-29 20:42:15
Subject: [ psqlodbc-Bugs-1010541 ] applications crash with SIGPIPE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group