X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6172F528C1 for ; Thu, 2 Jun 2005 13:32:51 -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 52140-06 for ; Thu, 2 Jun 2005 16:32:43 +0000 (GMT) Received: from mail.sqlpower.ca (mail.sqlpower.ca [216.123.188.162]) by svr1.postgresql.org (Postfix) with ESMTP id 1E17E528CD for ; Thu, 2 Jun 2005 13:32:42 -0300 (ADT) Received: by mail.sqlpower.ca (Postfix, from userid 1003) id 88A7229A4FD; Thu, 2 Jun 2005 12:32:48 -0400 (EDT) Received: from [192.168.1.101] (sub-etha.sqlpower.ca [192.168.0.9]) by mail.sqlpower.ca (Postfix) with ESMTP id 06E1F29A4F4 for ; Thu, 2 Jun 2005 12:32:46 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: pgsql-odbc@postgresql.org From: Jonathan Fuerth Subject: Frontend/Backend protocol 3.0 Date: Thu, 2 Jun 2005 12:32:44 -0400 X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/5 X-Sequence-Number: 5392 Hello people, I've taken a few days to hack in support for the frontend/backend protocol v3.0 (which first appeared in PostgreSQL 7.4). My main motivator was to get at the SQLSTATE codes which backends >= 7.4 return with every error message. What's done now: -read the new message length field from all server responses -Parse new-style error/notice blocks -return correct SQLSTATE from backend to ODBC callers (connection and result level) -added #ifdef so the driver compiles against newer iODBC headers What I intend to finish this week: -upgrade the function call API to new protocol What needs doing that I can't/won't finish soon: -upgrade Windows configuration GUI to add new "7.4" protocol option -take advantage of the new transaction status byte in 'Z' messages (my patch just ignores them) -rework prepared statement stuff to use the new protocol features (I haven't looked at this stuff at all, but the old code works on the new protocol--it could be faster, that's all) If there is any interest in this patch, I will post it to the list, or email it to individuals. Regards, -Jonathan Fuerth