From matt@verranm.fsnet.co.uk Tue Jun 29 20:15:56 2004 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D9367D1B266 for ; Tue, 29 Jun 2004 17:15:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90104-08 for ; Tue, 29 Jun 2004 20:15:51 +0000 (GMT) Received: from cmailm3.svr.pol.co.uk (cmailm3.svr.pol.co.uk [195.92.193.19]) by svr1.postgresql.org (Postfix) with ESMTP id D6D6ED1B26E for ; Tue, 29 Jun 2004 17:15:46 -0300 (ADT) Received: from user-6858.l2.c4.dsl.pol.co.uk ([81.79.186.202] helo=GREYMONKEY) by cmailm3.svr.pol.co.uk with smtp (Exim 4.14) id 1BfP19-0006WW-3Q for pgsql-jdbc@postgresql.org; Tue, 29 Jun 2004 21:15:47 +0100 Message-ID: <000801c45e15$e3205e50$060313ac@GREYMONKEY> From: "Matt Verran" To: Subject: Java Studio Creator and postgresql jdbc Date: Tue, 29 Jun 2004 21:15:56 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C45E1E.449FA700" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=HTML_30_40, HTML_MESSAGE, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/174 X-Sequence-Number: 10376 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C45E1E.449FA700 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Postgresql JDBC team, I've used your Postgresql DB on BeOS for years and although leaving BeOS be= hind, I've taken Postgresql with me onto Solaris and Windows where I'm havi= ng some trouble using your 7.3 and 7.4 jdbc drivers with the Solaris build = of 7.3.6 from Java Studio Creator. Now, the driver works fine from another package, and I've written Java apps= that connect ok - but I wanted to raise awareness to see if its a fault wi= th the driver (hopefully not) that can have a workaround. I will be raising= the fault with Sun also, but it may be worth taking a look just in case it= s something with the driver. The way to recreate the problem is simple:- Load Java Studio Creator.=20 Create a project.=20 Drag a dropdown control onto the page. Setup a Postgresql JDBC connection from the 'Server Navigator'. Drag and drop a Postgresql JDBC table onto the dropdown control. Select 'Fill the list'. The text in the dropdown should change from 'item1' to 'abc' to denote a co= nnection. Try the above with another source (I used the supplied Pointbase connector)= and it works fine. I look forward to hearing from you soon - keep up the excellent work! Cheers Matt Verran ------=_NextPart_000_0005_01C45E1E.449FA700 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Postgresql JDBC team,
 
I've used your Postgresql DB on BeOS for y= ears and=20 although leaving BeOS behind, I've taken Postgresql with me onto Solaris an= d=20 Windows where I'm having some trouble using your 7.3 and 7.4 jdbc drivers w= ith=20 the Solaris build of 7.3.6 from Java Studio Creator.
 
Now, the driver works fine from anoth= er=20 package, and I've written Java apps that connect ok - but I wanted to raise= =20 awareness to see if its a fault with the driver (hopefully not) that can ha= ve a=20 workaround. I will be raising the fault with Sun also, but it may be worth= =20 taking a look just in case its something with the driver.
 
The way to recreate the problem is=20 simple:-
 
Load Java Studio Creator.
Create a project.
Drag a dropdown control onto the page.
Setup a Postgresql JDBC connection from th= e 'Server=20 Navigator'.
Drag and drop a Postgresql JDBC table onto= the=20 dropdown control.
Select 'Fill the list'.
The text in the dropdown should change fro= m 'item1'=20 to 'abc' to denote a connection.
Try the above with another source (I used = the=20 supplied Pointbase connector) and it works fine.
 
I look forward to hearing from you soon - = keep up=20 the excellent work!
Cheers
Matt Verran
 
------=_NextPart_000_0005_01C45E1E.449FA700-- From oliver@opencloud.com Wed Jun 30 07:28:22 2004 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 468E6D1B1DC for ; Wed, 30 Jun 2004 04:28:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87059-08 for ; Wed, 30 Jun 2004 07:28:20 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 08CF8D1B193 for ; Wed, 30 Jun 2004 04:28:17 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BfZVu-00022F-00; Wed, 30 Jun 2004 19:28:14 +1200 Message-ID: <40E26C02.2050704@opencloud.com> Date: Wed, 30 Jun 2004 19:30:10 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matt Verran Cc: pgsql-jdbc@postgresql.org Subject: Re: Java Studio Creator and postgresql jdbc References: <000801c45e15$e3205e50$060313ac@GREYMONKEY> In-Reply-To: <000801c45e15$e3205e50$060313ac@GREYMONKEY> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/175 X-Sequence-Number: 10377 Matt Verran wrote: > The way to recreate the problem is simple:- You forgot step 0: download a ~125MB install package. Any idea what exactly it's trying to do at the driver level that is not behaving correctly? -O From jeremiah@cs.earlham.edu Thu Jul 29 17:40:21 2004 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5273ED1B182 for ; Thu, 29 Jul 2004 14:40:21 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75344-03 for ; Thu, 29 Jul 2004 17:40:13 +0000 (GMT) Received: from penguin.goodinassociates.com (unknown [206.80.71.229]) by svr1.postgresql.org (Postfix) with ESMTP id 6AE82D1B16B for ; Thu, 29 Jul 2004 14:40:12 -0300 (ADT) Received: from [206.80.71.242] ([206.80.71.242]) by penguin.goodinassociates.com (8.12.11/8.12.11) with ESMTP id i6THe0im027109; Thu, 29 Jul 2004 12:40:01 -0500 Subject: Re: Java Studio Creator and postgresql jdbc From: Jeremiah Jahn To: Oliver Jowett Cc: Matt Verran , postgres jdbc In-Reply-To: <40E26C02.2050704@opencloud.com> References: <000801c45e15$e3205e50$060313ac@GREYMONKEY> <40E26C02.2050704@opencloud.com> Content-Type: text/plain Message-Id: <1091122800.10733.328.camel@bluejay.goodinassociates.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 29 Jul 2004 12:40:00 -0500 Content-Transfer-Encoding: 7bit X-RAVMilter-Version: 8.4.4(snapshot 20030410) (penguin.goodinassociates.com) Received-SPF: none (penguin.goodinassociates.com: 206.80.71.242 is neither permitted nor denied by domain of cs.earlham.edu) client-ip=206.80.71.242; envelope-from=jeremiah@cs.earlham.edu; helo=[206.80.71.242]; X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/322 X-Sequence-Number: 10706 bit of a repost here: I got the following from sun on this. Re: Supported DB Drivers Author: Valerie_Lipman Jul 25, 2004 2:02 PM (reply 4 of 4) We just tested postgresql in house and found that the driver is returning null for PreparedStatement.getMetaData() I recommend strongly that customers request this functionality directly from their database vendors - we are working with them through additional channels as well- but the customer's voice always is the best motivation to raise priority. They can best provide you information about when they will be able to properly support this functionality. Thanks, Val On Wed, 2004-06-30 at 02:30, Oliver Jowett wrote: > Matt Verran wrote: > > > The way to recreate the problem is simple:- > > You forgot step 0: download a ~125MB install package. > > Any idea what exactly it's trying to do at the driver level that is not > behaving correctly? > > -O > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings -- Jeremiah Jahn From oliver@opencloud.com Thu Jul 29 22:14:46 2004 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 88611D1B442 for ; Thu, 29 Jul 2004 19:14:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95528-02 for ; Thu, 29 Jul 2004 22:14:46 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 1FA57D1B215 for ; Thu, 29 Jul 2004 19:14:42 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BqJAW-0005kD-00; Fri, 30 Jul 2004 10:14:32 +1200 Message-ID: <410976C5.2050600@opencloud.com> Date: Fri, 30 Jul 2004 10:14:29 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeremiah Jahn Cc: Matt Verran , postgres jdbc Subject: Re: Java Studio Creator and postgresql jdbc References: <000801c45e15$e3205e50$060313ac@GREYMONKEY> <40E26C02.2050704@opencloud.com> <1091122800.10733.328.camel@bluejay.goodinassociates.com> In-Reply-To: <1091122800.10733.328.camel@bluejay.goodinassociates.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/328 X-Sequence-Number: 10712 Jeremiah Jahn wrote: > bit of a repost here: > I got the following from sun on this. > > Re: Supported DB Drivers > Author: Valerie_Lipman > Jul 25, 2004 2:02 PM > (reply 4 of 4) > > We just tested postgresql in house and found that the driver is > returning null for PreparedStatement.getMetaData() The current driver returns null from getMetaData() if there is no active resultset associated with the statement. The javadoc says: > Retrieves a ResultSetMetaData object that contains information about the > columns of the ResultSet object that will be returned when this > PreparedStatement object is executed. > > Because a PreparedStatement object is precompiled, it is possible to > know about the ResultSet object that it will return without having to > execute it. Consequently, it is possible to invoke the method > getMetaData on a PreparedStatement object rather than waiting to execute > it and then invoking the ResultSet.getMetaData method on the ResultSet > object that is returned. This is probably possible to implement when using a V3 connection (server version >= 7.4) as we can send Parse/Bind/Describe/ClosePortal to get a description of the portal without actually executing it. The driver doesn't do this currently though. I'd point out that it's probably the application at fault too. The javadoc goes on to say: > Returns: > the description of a ResultSet object's columns or null if the > driver cannot return a ResultSetMetaData object So 'null' is actually a legal return value (in fact, we'll probably have to continue returning null when using a V2 connection). -O