Problem retrieving a numeric(38,0) value as SQL_NUMERIC_STRUCT if value needs to use all 16 SQLCHAR elements of the val array

Поиск
Список
Период
Сортировка
От Walter Couto
Тема Problem retrieving a numeric(38,0) value as SQL_NUMERIC_STRUCT if value needs to use all 16 SQLCHAR elements of the val array
Дата
Msg-id 7FA4F9E5512F214C801E596ECD8790E066A79839@ETNAMAIL01.embarcadero.com
обсуждение исходный текст
Ответы Re: Problem retrieving a numeric(38,0) value as SQL_NUMERIC_STRUCT if value needs to use all 16 SQLCHAR elements of the val array  ("Inoue, Hiroshi" <inoue@tpf.co.jp>)
Список pgsql-odbc

Make sure you have the following table and data created in the database:

 

CREATE TABLE NUMBER_TEST

(

    test               integer         NOT NULL,

    numeric_double_col numeric(38,0)

    CONSTRAINT number_test_pkey PRIMARY KEY (test)

)

;

INSERT INTO NUMBER_TEST VALUES ( 6, 12345678901234567890123456789012345678 );

;

 

Execute the statement: select numeric_double_col from trunit.number_test where test = 6

 

Using the ODBC driver, bind using SQL_NUMERIC_STRUCT.

 

Expected values in the structure:

 

precision = 38

scale = 0

sign = 1

val = 0949B0F6F0023313C4499050DE38F34E

 

Actual values in the structure:

 

precision = 38

scale = -1

sign = 1

val = 0049B0F6F0023313C4499050DE38F34E

 

Other smaller values for the same column work fine.  Any ideas?

 

Regards,

Walter


CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.   ­­  

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Mentioning CPU for Windows build in docs
Следующее
От: John Smith
Дата:
Сообщение: Re: Problems using SQLFetch on prepared INSERT with RETURNING clause