From: Robert Jireš <robert.jires@centrum.cz>
To: pgsql-odbc@postgresql.org
Subject: SQLColAttributes and SQL_DESC_NULLABLE
Date: Fri, 02 Dec 2005 02:27:34 +0100
Message-ID: <438FA306.4070503@centrum.cz> (raw)
Hello,
I'm using .Net Odbc Data Provider, ODBC driver 8.1.x and PostgreSQL 8.1.0.
To find out whether column can be null, the .NET calls ODBC function
SQLColAttributes. Problem is, that this function allways returns
SQL_NULLABLE, even for columns declared as NOT NULL. I tried to enable
"Parse Statements" option of the driver, but it didn't help.
I downloaded the latest sources, compiled them to see what's going on
inside and found this:
It seems that for SQLColAttributes to return something else than
SQL_NULLABLE, "Parse Statements" option MUST be turned on. Am i right?
For some reason stmt->manual_result is true, which causes that the
statement is not parsed. What does this stmt->manual_result mean?
Thanks in advance.
Robert Jires
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: robert.jires@centrum.cz
Subject: Re: SQLColAttributes and SQL_DESC_NULLABLE
In-Reply-To: <438FA306.4070503@centrum.cz>
References: <438FA306.4070503@centrum.cz>
* 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