X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 7D778310D0D for ; Wed, 2 Jul 2003 13:43:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 57919-06 for ; Wed, 2 Jul 2003 10:43:19 -0300 (ADT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 2153030FF24 for ; Wed, 2 Jul 2003 10:43:18 -0300 (ADT) Received: (qmail 6051 invoked by uid 33); 2 Jul 2003 13:43:16 -0000 To: Hiroshi Inoue Subject: Re: A few problems with the ODBC driver Message-ID: <1057153396.3f02e17478739@latenight.fiasco.org.il> Date: Wed, 02 Jul 2003 16:43:16 +0300 (IDT) From: Shachar Shemesh Cc: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ10571533964be8acf6cf5e8b13c0d20da47ebf5ea3" User-Agent: IMP/PHP IMAP webmail program 2.2.6 X-Originating-IP: 194.90.116.221 X-Archive-Number: 200307/12 X-Sequence-Number: 3073 This message is in MIME format. ---MOQ10571533964be8acf6cf5e8b13c0d20da47ebf5ea3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Quoting Hiroshi Inoue : > Maybe I found a cause. > Please try the snapshot dll at > http://www.geocities.jp/inocchichichi/psqlodbc/ . > I found the cause of the problem. The SQLExecute command constructs a query in order to find the table. It forgot to double quote the table name. As all the table names in my database are uppercase, this caused the query to fail (PGSQL converts all unquoted ids to lowercase), and the recordset was marked readonly. Attached is a patch that fixes this problem. Forgive me if this is the wrong place to post it. Let me know where I should post it. Shachar ---MOQ10571533964be8acf6cf5e8b13c0d20da47ebf5ea3 Content-Type: application/octet-stream; name="execute.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="execute.diff" SW5kZXg6IHBhcnNlLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmls ZTogL3Vzci9sb2NhbC9jdnNyb290L3BzcWxvZGJjL3BzcWxvZGJjL3BhcnNl LmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNDIKZGlmZiAtdSAtcjEuNDIg cGFyc2UuYwotLS0gcGFyc2UuYwkyMyBBcHIgMjAwMyAwOTo0OTo0NyAtMDAw MAkxLjQyCisrKyBwYXJzZS5jCTIgSnVsIDIwMDMgMTM6Mzc6NDQgLTAwMDAK QEAgLTkyNyw3ICs5MjcsNyBAQAogCQkJIAkgCSAqIFdlIGFsc28gaGF2ZSB0 byBjaGVjayBhcyBmb2xsb3dzLgogCQkJIAkgCSAqLwogCQkJCQlzcHJpbnRm KHRva2VuLCAic2VsZWN0IG5zcG5hbWUgZnJvbSBwZ19uYW1lc3BhY2Ugbiwg cGdfY2xhc3MgYyIKLQkJCQkJCSIgd2hlcmUgYy5yZWxuYW1lc3BhY2U9bi5v aWQgYW5kIGMub2lkPSclcyc6OnJlZ2NsYXNzIiwgdGlbaV0tPm5hbWUpOwor CQkJCQkJIiB3aGVyZSBjLnJlbG5hbWVzcGFjZT1uLm9pZCBhbmQgYy5vaWQ9 J1wiJXNcIic6OnJlZ2NsYXNzIiwgdGlbaV0tPm5hbWUpOwogCQkJCQlyZXMg PSBDQ19zZW5kX3F1ZXJ5KGNvbm4sIHRva2VuLCBOVUxMLCBDTEVBUl9SRVNV TFRfT05fQUJPUlQpOwogCQkJCQlpZiAocmVzKQogCQkJCQl7Cg== ---MOQ10571533964be8acf6cf5e8b13c0d20da47ebf5ea3--