From: Dave Cramer <davecramer@postgres.rocks>
To: Abhishek Kumar <abhishek.aak0@gmail.com>
Cc: pgsql-odbc@lists.postgresql.org
Subject: Re: DataType bytea Precision returning a negative value
Date: Thu, 11 Jul 2024 08:54:31 -0400
Message-ID: <CADK3HHKM-LMdHVC6dZFoRjsLo3CpXv3V-d_a_pr++BWQhVvvwA@mail.gmail.com> (raw)
In-Reply-To: <CAAyULEAJTBLJxHvDjU8x0VivME61N-52Nt+Z9R4B+ZQXYq0BUg@mail.gmail.com>
References: <CAAyULEAJTBLJxHvDjU8x0VivME61N-52Nt+Z9R4B+ZQXYq0BUg@mail.gmail.com>
On Thu, 11 Jul 2024 at 04:56, Abhishek Kumar <abhishek.aak0@gmail.com>
wrote:
> Hi,
>
> When we query the psqlodbc driver to get the column information of the
> table(via SQLColumns), we get a precision value of -4 for bytea column. Is
> this expected to happen? If yes, what does this value mean for a bytea
> column. If no, then what is the correct expected behavior?
>
Looks like we return
switch (handle_unknown_size_as)
{
case UNKNOWNS_AS_DONTKNOW:
return SQL_NO_TOTAL;
}
Because we don't know the length.
Dave
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: davecramer@postgres.rocks, abhishek.aak0@gmail.com
Subject: Re: DataType bytea Precision returning a negative value
In-Reply-To: <CADK3HHKM-LMdHVC6dZFoRjsLo3CpXv3V-d_a_pr++BWQhVvvwA@mail.gmail.com>
References: <CAAyULEAJTBLJxHvDjU8x0VivME61N-52Nt+Z9R4B+ZQXYq0BUg@mail.gmail.com> <CADK3HHKM-LMdHVC6dZFoRjsLo3CpXv3V-d_a_pr++BWQhVvvwA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox