Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 15BF9475DD7 for ; Fri, 17 Jan 2003 17:40:46 -0500 (EST) Received: from tomts25-srv.bellnexxia.net (tomts25.bellnexxia.net [209.226.175.188]) by postgresql.org (Postfix) with ESMTP id 2F599475D99 for ; Fri, 17 Jan 2003 17:40:45 -0500 (EST) Received: from ratty.mindon.net ([65.95.176.129]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030117224046.PTBU23740.tomts25-srv.bellnexxia.net@ratty.mindon.net> for ; Fri, 17 Jan 2003 17:40:46 -0500 Received: from ratty.mindon.net (localhost [127.0.0.1]) by ratty.mindon.net (Postfix) with SMTP id DF2BF2E5C for ; Fri, 17 Jan 2003 17:40:52 -0500 (EST) Received: from illinar.lan.mindon.net (illinar.lan.mindon.net [10.0.2.2]) by ratty.mindon.net (Postfix) with ESMTP id EAAE829BA for ; Fri, 17 Jan 2003 17:40:50 -0500 (EST) Date: Fri, 17 Jan 2003 17:42:00 -0500 From: Oleg Grodzevich X-Mailer: The Bat! (v1.61) Personal Reply-To: Oleg Grodzevich X-Priority: 3 (Normal) Message-ID: <24752471250.20030117174200@mindon.net> To: pgsql-odbc@postgresql.org Subject: SQL: last OID returning MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/75 X-Sequence-Number: 2574 Hello, I have looked everywhere on the net trying to get the idea how to obtain the message returned when one executes some SQL operation (e.g INSERT 1), or alternatively just get last OID. I have found others people asking the same question, however no answer was given. I have tried executing functions SQLGetDiagRec/SQLGetDiagField along with the latest version of PGSQL ODBC driver (ODBC 3.0), but without any success. I also can't figure it out after quick look through the driver's source code. Is there some method to get this info using ODBC? And if so, what is the minimal ODBC version that supports it? -- Best regards, | homepage: http://www.mindon.net/illinar Oleg Grodzevich | e-mail: illinar@mindon.net | ICQ: 37500662