Received: from localhost.localdomain (to-velocet.redhat.com [216.138.202.10]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7DG84P11518 for ; Mon, 13 Aug 2001 12:08:04 -0400 (EDT) (envelope-from liams@redhat.com) Received: (from liams@localhost) by localhost.localdomain (8.11.2/8.11.2) id f7DG80H01386 for pgsql-jdbc@postgresql.org; Mon, 13 Aug 2001 12:08:00 -0400 Date: Mon, 13 Aug 2001 12:07:59 -0400 From: Liam Stewart To: pgsql-jdbc@postgresql.org Subject: Re: DatabaseMetaData Message-ID: <20010813120759.A966@redhat.com> Mail-Followup-To: pgsql-jdbc@postgresql.org References: <20010810110745.A1671@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rpijlman@wanadoo.nl on Sat, Aug 11, 2001 at 01:13:34AM +0200 X-Archive-Number: 200108/155 X-Sequence-Number: 1262 On Sat, Aug 11, 2001 at 01:13:34AM +0200, Rene Pijlman wrote: > I'm not sure if this is true. The JDBC book > (http://java.sun.com/docs/books/jdbc/) says in the description > of supportsStoredProcedures: "checks whether this database > supports stored procedure calls using the stored procedure > escape syntax". And in section A.1.3: "... must be supported by > a JDBC Compliant driver... Where appropriate, an escape syntax > must be included for stored procedures, ...". I see no mention > of J2EE with respect to this requirement. Ok, I see what you're looking at. However, the book states the escapes should only be supported when the underlying DBMS supports them and that escape syntaxes must be included for stored procedures etc where appropriate. Does PostgreSQL support stored procedures using a stored procedures escape syntax? If yes, we should return yes, if no, we should return no until that functionality is added. Both cases are allowed, AFAICS. The book doesn't mention that drivers should always return true for this procedure. > >In general, I think that better checking for > >unavailable metadata can be done. > > I'm not sure what you mean by that. But maybe I'm the problem, > its getting late :-) Actually, I'm not sure what I was saying anymore .. :P never mind this statement until I figure it out myself :) > Hmmm... what book are you refering to? I have the "Java 2 EE > Platform and Components Specifications", but it doesn't have a > section 6.2.2.3. "Java 2 EE Specification, v1.2" Liam -- Liam Stewart :: Red Hat Canada, Ltd. :: liams@redhat.com