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 9DC069DCCB2 for ; Mon, 5 Dec 2005 17:06:24 -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 51742-06 for ; Mon, 5 Dec 2005 17:06:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 432E09DCD4A for ; Mon, 5 Dec 2005 17:06:18 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jB5L6FY17686 for pgsql-odbc@postgresql.org; Mon, 5 Dec 2005 22:06:15 +0100 Date: Mon, 5 Dec 2005 22:06:15 +0100 From: Ludek Finstrle To: pgsql-odbc@postgresql.org Subject: Server side prepare patch #2 Message-ID: <20051205210615.GA17677@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/47 X-Sequence-Number: 6526 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I've attached patch to solve problem with multiple calling SQLPrepare or SQLExecDirect with Server side prepare. The patch is based on patch posted by Reiner. I thank you for patch and testing. Regards, Luf --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="psqlodbc-server_side_prepare2.diff" diff -c psqlodbc.orig\execute.c psqlodbc\execute.c *** psqlodbc.orig\execute.c Sun Dec 04 22:16:28 2005 --- psqlodbc\execute.c Mon Dec 05 13:09:34 2005 *************** *** 308,315 **** res->next = NULL; QR_Destructor(res); res = kres; - SC_set_prepared(stmt, TRUE); } } else { --- 308,315 ---- res->next = NULL; QR_Destructor(res); res = kres; } + SC_set_prepared(stmt, TRUE); } else { --zhXaljGHf11kAtnf--