Unix Technical Forum

BUG #3251: selection of numeric columns from MS SQL Server return wron values

This is a discussion on BUG #3251: selection of numeric columns from MS SQL Server return wron values within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3251 Logged by: CarlosCastaneda Email address: kjatwork@gmx.net PostgreSQL version: 8.2.4 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:45 AM
CarlosCastaneda
 
Posts: n/a
Default BUG #3251: selection of numeric columns from MS SQL Server return wron values


The following bug has been logged online:

Bug reference: 3251
Logged by: CarlosCastaneda
Email address: kjatwork@gmx.net
PostgreSQL version: 8.2.4
Operating system: Windows XP
Description: selection of numeric columns from MS SQL Server return
wron values
Details:

I used to run queries against PostreSQL from MS SQL Server via linked server
over OLEDB Provider ODBC.
The interface used to work up to version 8.2.3. As of lastest update (8.2.4)
selecting data on numeric(12,2) colums always return 0. Converting the
numeric columns to real succeeds.
Example:
select * from OPENQUERY([Postgres], 'select numericcolomn from table')
returns 0.
select * from OPENQUERY([Postgres], 'select numericcolomn::real from table')
returns the correct values.

But I want to insert data into PostgreSQL via MS SQL Server.
insert into select * from OPENQUERY([Postgres], 'select numericcolomn from
table where 1=0')
select * from SQLServertable

Running the statement above only inserts 0 values.

insert into select * from OPENQUERY([Postgres], 'select numericcolomn::real
as numericcolumn from table where 1=0') select * from SQLServertable
doesn't work either.

It seems, as if there has been a major change in pgODBC provider.

The ODBC Provider version is 08.02.03.00

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com