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 Clemens Ladisch <clemens@ladisch.de>
Re: Report BUG: The column size for BIT VARYING(5) type is incorrect "Jon Raiford" <raiford@labware.com>
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 test case?

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
Дата:
От: Frank Slicer
Дата:
FAQ