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 E0C5952820 for ; Wed, 29 Jun 2005 04:15:26 -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 74672-03 for ; Wed, 29 Jun 2005 07:15:18 +0000 (GMT) Received: from info.midascomm.com (unknown [203.196.171.91]) by svr1.postgresql.org (Postfix) with ESMTP id 52814529AA for ; Wed, 29 Jun 2005 04:15:11 -0300 (ADT) Received: from midascomm.com ([192.168.13.93]) by info.midascomm.com (8.12.10/8.12.10) with ESMTP id j5T7F0PE027108 for ; Wed, 29 Jun 2005 12:45:00 +0530 Message-ID: <42C25016.1090808@midascomm.com> Date: Wed, 29 Jun 2005 13:09:02 +0530 From: sarves User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: using postgresql-8.0-311.jdbc2.jar Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-midascomm.com-MailScanner-Information: Please contact System Administrator for more information X-midascomm.com-MailScanner: Found to be clean X-MailScanner-From: sharvesh@midascomm.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.803 tagged_above=0 required=5 tests=AWL, DEAR_SOMETHING X-Spam-Level: X-Archive-Number: 200506/152 X-Sequence-Number: 13114 Dear sir, I was interfacing with postgreSQL 7.1.3 from my application using the JDBC driver released with it. Now,I'm trying to communicate with postgreSQL 8.0.3 with postgresql-8.0-311.jdbc2.jar. PostgreSQL 8.0.3 server is running on another machine in LAN. My application connects to the server using postgresql-8.0-311.jdbc2.jar. While it is possible to connect to the server,the response for each query is empty data though there's data in server for the given query. The following method is used to execute each query: public Vector TableQuery(String instruction) { SQL = instruction; Vector queryResult= new Vector(); //Vector de vectores Vector TableRow = new Vector(); TableHeader = new Vector(); ResultSet rs; try { rs = st.executeQuery(instruction); ResultSetMetaData rsmd = rs.getMetaData(); // Extraer Nombres de Columnas int cols = rsmd.getColumnCount(); for(int i=1;i<=cols;i++) TableHeader.addElement(rsmd.getColumnLabel(i)); // Extraer registros int num = rs.getFetchSize(); if (num>0) { while (rs.next()) { TableRow = new Vector(); for (int i=1;i<=cols;i++) { Object o = rs.getObject(i); if (rs.wasNull())TableRow.addElement(o); } queryResult.addElement(TableRow); } wasFail = false; } } catch(Exception ex) { wasFail = true; problem = ex.getMessage(); System.out.println("Error: " + ex); ex.printStackTrace(); } return queryResult; } No exception is thrown. It should be noted that the same snippet works if I use the JDBC driver given with postgreSQL 7.1.3 to communicate with postgreSQL 8.0.3. What could the problem be? Thanks in advance. sincerely, Sarveswaran M