X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BB13E52A72 for ; Sat, 20 Aug 2005 15:53:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37827-06 for ; Sat, 20 Aug 2005 18:53:41 +0000 (GMT) Received: from omta08.mta.everyone.net (sitemail3.everyone.net [216.200.145.37]) by svr1.postgresql.org (Postfix) with ESMTP id A17CF528F9 for ; Sat, 20 Aug 2005 15:53:39 -0300 (ADT) Received: from dm21.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta08.mta.everyone.net (Postfix) with ESMTP id 0FC1F442D6 for ; Sat, 20 Aug 2005 11:53:40 -0700 (PDT) X-Eon-Dm: dm21 Received: from mailweb33.everyone.net (172.16.0.19 [172.16.0.19]) by dm21.mta.everyone.net (EON-AUTHRELAY2) with ESMTP id dm21.4306d65d.b966 for ; Sat, 20 Aug 2005 11:53:39 -0700 (PDT) X-Eon-Sig: AQJgD5pDB3wzx/alMQIAAAAB,90af91b785bc2ebfa0f81afeda647aa9 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Sat, 20 Aug 2005 11:53:39 -0700 (PDT) From: Bernard Henry Voynet To: pgsql-odbc@postgresql.org Subject: Unexpected ADO properties Reply-To: bhv@quebecemail.com X-Originating-Ip: [83.114.224.181] Message-Id: <20050820115339.D2B57834@dm21.mta.everyone.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.257 required=5 tests=[FORGED_RCVD_HELO=0.05, UPPERCASE_25_50=0.207] X-Spam-Level: X-Archive-Number: 200508/180 X-Sequence-Number: 5819 Hello I am working on a project that access databases through ADO over ODBC and must now include PostgreSQL. The code of this project needs to know about the fields caracteristics like whether or not it is: - a primary key - an autoincrement key - nullabble - updatable - etc.. For this I use the ADO properties that give theses informations. For a Jet database I get (for example): serialkey Type = adInteger DefinedSize = 4 Precision = 10 NumericScale = 255 Status = adRecOK Attributes = adFldFixed Properties (9) BASECATALOGNAME (adVarWChar) = (Null) BASECOLUMNNAME (adVarWChar) = serialkey BASESCHEMANAME (adVarWChar) = (Null) BASETABLENAME (adVarWChar) = genericfields CALCULATIONINFO (adVarBinary) = (Null) ISAUTOINCREMENT (adBoolean) = True KEYCOLUMN (adBoolean) = True OPTIMIZE (adBoolean) = False RELATIONCONDITIONS (adVarBinary) = (Null) However, with PostgreSQL 8.0.3 (psqlodc 08.00.0102), I don't get what is expected. When I declare le serialkey field as as SERIAL PRIMARY KEY, instead of the expected result, I get: serialkey Type = adInteger DefinedSize = 4 Precision = 10 NumericScale = 255 Status = adRecOK Attributes = adFldUnknownUpdatable, adFldFixed, adFldIsNullable, adFldMayBeNull Properties (9) BASECATALOGNAME (adVarWChar) = (Null) BASECOLUMNNAME (adVarWChar) = serialkey BASESCHEMANAME (adVarWChar) = (Null) BASETABLENAME (adVarWChar) = genericfields CALCULATIONINFO (adVarBinary) = (Null) ISAUTOINCREMENT (adBoolean) = False KEYCOLUMN (adBoolean) = True OPTIMIZE (adBoolean) = False RELATIONCONDITIONS (adVarBinary) = (Null) Where both: - Attributes - ISAUTOINCREMENT Are not correct since serialkey is a non nullable serial key Would you have any idea on this problem ? And any help to get the right values ? Best regards _____________________________________________________________ Obtenez aussi votre adresse electronique gratuite de Quebecemail.com http://www.quebecemail.com, un service gratuit et permanent.