Received: from m4.c2.telstra-mm.net.au (m4.c2.telstra-mm.net.au [24.192.3.19]) by hub.org (8.9.3/8.9.1) with ESMTP id UAA60033 for ; Fri, 23 Apr 1999 20:47:41 -0400 (EDT) (envelope-from jbarnett@pobox.com) Received: from m5.c2.telstra-mm.net.au (m5.c2.telstra-mm.net.au [24.192.3.20]) by m4.c2.telstra-mm.net.au (8.8.6 (PHNE_14041)/8.8.6) with ESMTP id KAA26664; Sat, 24 Apr 1999 10:47:39 +1000 (EST) X-BPC-Relay-Envelope-From: jbarnett@pobox.com X-BPC-Relay-Sender-Host: m5.c2.telstra-mm.net.au [24.192.3.20] X-BPC-Relay-Info: Message delivered as CC or BCC. Received: from persephone.hsys.com.au (CPE-24-192-48-162.nsw.bigpond.net.au [24.192.48.162]) by m5.c2.telstra-mm.net.au (8.8.6 (PHNE_14041)/8.8.6) with SMTP id KAA18571; Sat, 24 Apr 1999 10:47:38 +1000 (EST) Received: by localhost with Microsoft MAPI; Sat, 24 Apr 1999 10:45:35 +1000 Message-ID: <01BE8E3F.959B0140.jbarnett@pobox.com> From: Jon Barnett Reply-To: "jbarnett@pobox.com" To: "'herouth maoz'" , "'pgsql-interfaces@hub.org'" Subject: RE: [INTERFACES] JDBC next() method Date: Sat, 24 Apr 1999 10:45:34 +1000 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Saturday, 24 April 1999 6:45, herouth maoz [SMTP:herouth@oumail.openu.ac.il] wrote: > No, the question is whether Postgres's behaviour - of returning a row with > a null field in case no rows fell into the WHERE category - is compatible > with other databases, or indeed with the SQL standard. I don't have the > standard in front of me at this moment. But you must understand that this > is how PostgreSQL behaves, no matter whether your frontend is in Java, > python, perl or C. It's not a question of JDBC. I concede your point on that. I'm just obsessing over the ultimate result of this quirk(?) - independence of the application. From a practicalities point of view, if the result is not compliant with the SQL standard, the question is whether to hide it in the abstraction layer (JDBC driver) or fix it at the source - I guess costs and complexity of the fix will determine that (although it is always better to fix it at the source). Of course, hiding it in the abstraction layer means you need to do the same for every interface (which is a headache for maintainers). This is just speculation and musing, in any case, as I am not sure what the SQL standard says with respect to this limit case (where a table is empty). More research needed I suppose. :) JonB.