X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7707D9DD701 for ; Thu, 1 Dec 2005 23:31:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54011-04 for ; Thu, 1 Dec 2005 23:31:42 -0400 (AST) X-Greylist: delayed 01:34:01.655719 by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by postgresql.org (Postfix) with ESMTP id 582559DD750 for ; Thu, 1 Dec 2005 23:01:26 -0400 (AST) Received: from smtp.nextra.cz (smtp.nextra.cz [195.70.130.2]) by svr2.postgresql.org (Postfix) with ESMTP id ABA71F0A05 for ; Fri, 2 Dec 2005 01:27:43 +0000 (GMT) Received: from [10.0.0.2] (194.149.113.26.adsl.nextra.cz [194.149.113.26]) by smtp.nextra.cz (Postfix) with ESMTP id 0CC8B5D2E for ; Fri, 2 Dec 2005 02:27:34 +0100 (CET) Message-ID: <438FA306.4070503@centrum.cz> Date: Fri, 02 Dec 2005 02:27:34 +0100 From: =?ISO-8859-2?Q?Robert_Jire=B9?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: SQLColAttributes and SQL_DESC_NULLABLE Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.319 required=5 tests=[DNS_FROM_RFC_POST=1.44, DNS_FROM_RFC_WHOIS=0.879] X-Spam-Score: 2.319 X-Spam-Level: ** X-Archive-Number: 200512/9 X-Sequence-Number: 6488 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