Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f17DUOx48057 for ; Wed, 7 Feb 2001 08:30:24 -0500 (EST) (envelope-from pgsql-jdbc-owner@postgresql.org) Received: from waco2.calpha.com (waco2.calpha.com [208.232.233.3]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f16MV7x46920 for ; Tue, 6 Feb 2001 17:31:07 -0500 (EST) (envelope-from Greg@10happythings.com) Received: from 10happythings.com (gspeegle.t1-s.wireless.calpha.com [63.80.26.25] (may be forged)) by waco2.calpha.com (8.10.1/8.10.1) with ESMTP id f16MUuY13001; Tue, 6 Feb 2001 16:30:56 -0600 Message-ID: <3A807B31.DC58C68A@10happythings.com> Date: Tue, 06 Feb 2001 16:31:13 -0600 From: Greg Speegle X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Peter T Mount CC: pgsql-jdbc@postgresql.org Subject: Re: [INTERFACES] Q on JDBC's resultset References: <981454871.3a7fd017dc11f@webmail.retep.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/27 X-Sequence-Number: 136 Peter T Mount wrote: > 7.1 has the beginings of an UpdateableResultSet. When I can work out how to > solve a few fundamental problems it shouldn't take long. > > Here's a few questions for people to see if they can figure it out: > > * How to detect what table a column belongs so. Required if the query was a > join of 2 or more tables. As I understand the JDBC spec, you are not supposed to be able to update through a ResultSet unless several criteria are met by the query, including that the query is over exactly one table (to avoid problems like these). I don't recall if the other cases are also prohibited, but that would make the problem easier. > * How to detect if the query was on a view. Do we support updateable view's? > (not tried it myself). > > * How to detect if a column was a computed value (ie count(*) or col1+col2 etc). Greg Speegle Baylor University