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

From: Clemens Ladisch <clemens(at)ladisch(dot)de>
To: pgsql-odbc(at)lists(dot)postgresql(dot)org
Subject: Re: Report BUG: The column size for BIT VARYING(5) type is incorrect
Date: 2020-08-26 07:01:20
Message-ID: 5b781d8a-1384-32be-1fbf-4e9c184e0467@ladisch.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Frank Slicer 2020-08-26 13:56:05 Source or binaries for pgsql-odbc for Linux (Amazon Linux 2)
Previous Message James (Ke) Wang 2020-08-25 09:32:45 Report BUG: The column size for BIT VARYING(5) type is incorrect