Re: Report BUG: The column size for BIT VARYING(5) type is incorrect

Поиск
Список
Период
Сортировка
От Clemens Ladisch
Тема Re: Report BUG: The column size for BIT VARYING(5) type is incorrect
Дата
Msg-id 5b781d8a-1384-32be-1fbf-4e9c184e0467@ladisch.de
обсуждение исходный текст
Ответ на Report BUG: The column size for BIT VARYING(5) type is incorrect  ("James (Ke) Wang" <james.wang@sas.com>)
Ответы Re: Report BUG: The column size for BIT VARYING(5) type is incorrect  ("Jon Raiford" <raiford@labware.com>)
Список pgsql-odbc
James (Ke) Wang wrote:
> create table j_varbit2 (vbt1 bit varying (5))
>
> *ColumnName = "vbt1", *NameLengthPtr = 4, *DataTypePtr = SQL_WVARCHAR=-9, *ColumnSizePtr = 1, *DecimalDigits = 0,
*NullablePtr= SQL_NULLABLE=1
 
>
> Why is the *ColumnSizePtr = 1 instead of *ColumnSizePtr = 5 since the column is created with bit varying (5) in the
testcase?
 

The ODBC specification does not define the data type BIT VARYING, so the
ODBC driver tries to represent it as a blob or text.

And five bits fit into one byte.


Regards,
Clemens



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

Предыдущее
От: "James (Ke) Wang"
Дата:
Сообщение: Report BUG: The column size for BIT VARYING(5) type is incorrect
Следующее
От: Frank Slicer
Дата:
Сообщение: Source or binaries for pgsql-odbc for Linux (Amazon Linux 2)