possible bug with casting of STDDEV arguments

Поиск
Список
Период
Сортировка
От fatmijumar fatmijumar
Тема possible bug with casting of STDDEV arguments
Дата
Msg-id 15ab4b4f0907230746m1c2883bbsfed274aff099da5d@mail.gmail.com
обсуждение исходный текст
Список pgsql-odbc
Environment:

- postgresql 8.4.0
- odbc psqlodbc_08_04_0100.zip
- pgadmin III 1.10.0
- windows xp with visual basic ado

Problem:

- a query is done in pgadmin OK, it returns one record
- the same query, when done via odbc, does not return any record. When
asking for the .recordcount property, we get the following message
(see image)
- it seems to have something to do with the casting of the argument of
the STDDEV function

If OK for pgadmin, should not be OK for ODBC?

Thank you and regards.

query

SELECT STDDEV(FIELD1+FIELD2/6) AS VALUE1 FROM tbldata  (NOT OK)
SELECT STDDEV(cast(C+Mn/6 as real)) AS VALUE1 FROM tbldata  (OK)

data of tbldata

FIELD1;FIELD2
0.08600;0.66000
0.10400;0.58000

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: "Sufficool, Stanley"
Дата:
Сообщение: Re: Best way to import data in postgresl (not "COPY")
Следующее
От: Assaf Lavie
Дата:
Сообщение: Re: compiling odbc x64 on windows