Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.1/8.9.1) with ESMTP id EAA04116 for ; Wed, 25 Nov 1998 04:33:45 -0500 (EST) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.6/NETTuno 3.1) with ESMTP id KAA01368; Wed, 25 Nov 1998 10:33:40 +0100 (MET) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 0zid4t-0000fJ-00; Wed, 25 Nov 1998 11:25:47 +0000 Message-ID: <365BCE19.52AE4AE8@sferacarta.com> Date: Wed, 25 Nov 1998 10:30:01 +0100 From: "Jose' Soares" Reply-To: sferac@bo.nettuno.it Organization: Sfera Carta Software X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: pgsql-interfaces CC: sferac@bo.nettuno.it Subject: psqlodbc Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I have a problem with psqlodbc using M$access. I created a query on M$access, with the following: SELECT esito1, esito2 FROM brogliacci WHERE esito1 IS NOT NULL OR esito2 IS NOT NULL; When I tred to execute the query I had an ODBC call failed message and then the connection was down. Here an extract of psqlodbc.log file: ---------------- Socket Info ------------------------------- socket=53, reverse=0, errornumber=0, errormsg='(null)' buffer_in=55122188, buffer_out=55126288 buffer_filled_in=42, buffer_filled_out=0, buffer_read_in=42 conn=55115896, query='SELECT "brogliacci"."esito1","brogliacci"."esito2" FROM "brogliacci" WHERE (NOT(("esito1" IS NULL ) ) OR NOT(("esito2" IS NULL ) ) ) ' STATEMENT ERROR: func=SC_execute, desc='', errnum=1, errmsg='Error while executing the query' ------------------------------------------------------------ hdbc=55115896, stmt=55130388, result=0 I see that psqlodbc translate the query as: SELECT "brogliacci"."esito1","brogliacci"."esito2" FROM "brogliacci" WHERE (NOT(("esito1" IS NULL ) ) OR NOT(("esito2" IS NULL ) ) ) I don't know if this syntax is standard but anyway PostgreSQL understand this syntax except when the sentence contains the OR operator. EXAMPLES: SELECT esito1, esito2 FROM brogliacci WHERE esito1 Is Not Null OR esito2 Is Not Null; esito1|esito2 ------+------ (0 rows) SELECT "brogliacci"."esito1","brogliacci"."esito2" FROM "brogliacci" WHERE (NOT(("esito1" IS NULL ) ) ); esito1|esito2 ------+------ (0 rows) SELECT "brogliacci"."esito1","brogliacci"."esito2" FROM "brogliacci" WHERE (NOT(("esito1" IS NULL ) ) AND NOT(("esito2" IS NULL ) ) ); esito1|esito2 ------+------ (0 rows) SELECT "brogliacci"."esito1","brogliacci"."esito2" FROM "brogliacci" WHERE (NOT(("esito1" IS NULL ) ) OR NOT(("esito2" IS NULL ) ) ); pqReadData() -- backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while pr ocessing the request. We have lost the connection to the backend, so further processing is impossible. Terminating. Should it be considered a bug ? Please replay to sferac@bo.nettuno.it because I have problems with jose@sferacarta.com, Thanks -Jose'-