From gautam.rao@tatainfotech.com Thu Apr 4 12:35:26 2002 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by postgresql.org (Postfix) with ESMTP id 6999347545D for ; Thu, 4 Apr 2002 07:35:26 -0500 (EST) Received: from blrmail.in.tatainfotech.com (IDENT:root@localhost [127.0.0.1]) by brelay.tatainfotech.com (8.11.0/8.11.0) with ESMTP id g34Cat610371 for ; Thu, 4 Apr 2002 18:06:55 +0530 Received: from dsspntw34 ([163.122.5.65]) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with SMTP id SAA30017 for ; Thu, 4 Apr 2002 18:07:07 +0530 Message-ID: <01fd01c1dbd7$9930d350$41057aa3@tatainfotech.com> From: "Gautham S. Rao" To: Subject: JDBC Driver Problem Date: Thu, 4 Apr 2002 18:22:37 +0530 Organization: Tata Infotech Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01FA_01C1DC05.B29B3D70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/21 X-Sequence-Number: 3607 This is a multi-part message in MIME format. ------=_NextPart_000_01FA_01C1DC05.B29B3D70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, We have a query that involves 'union' and 'except' clause. When it is run o= n the psql database at the backend it retuns the required data. However, wh= en it is executed using the jdbc driver it is returning less number of reco= rds. The statements after the union and except clause are not getting execu= ted. Is this a bug in the JDBC driver? Also a similar problem is encountered in another query that uses 'case when= <> then <> else <> end' the equivalent of 'decode'. This query returns rec= ords when exceuted at the backend, but when exceuted using the JDBC driver,= it retuns no records. What could be the problem? Have any of you encounter= ed a similar problem and how do we solve it? Regards, Gautham. ------=_NextPart_000_01FA_01C1DC05.B29B3D70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
We have a query that involves 'union' and = 'except'=20 clause. When it is run on the psql database at the backend it retuns the=20 required data. However, when it is executed using the jdbc driver it is=20 returning less number of records. The statements after the union and except= =20 clause are not getting executed. Is this a bug in the JDBC driver?
 
Also a similar problem is encountered in a= nother=20 query that uses 'case when <> then <> else <> end' the=20 equivalent of 'decode'. This query returns records when exceuted at the bac= kend,=20 but when exceuted using the JDBC driver, it retuns no records. What could b= e the=20 problem? Have any of you encountered a similar problem and how do we solve= =20 it?
 
Regards,
Gautham.
------=_NextPart_000_01FA_01C1DC05.B29B3D70-- From nickf@ontko.com Thu Apr 4 12:58:10 2002 Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by postgresql.org (Postfix) with ESMTP id DFC3A47545D for ; Thu, 4 Apr 2002 07:58:10 -0500 (EST) Received: from 1cust48.tnt4.richmond.in.da.uu.net ([67.233.94.48] helo=nick) by swan.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16t6oS-0004HV-00; Thu, 04 Apr 2002 04:58:01 -0800 Reply-To: From: "Nick Fankhauser" To: "Gautham S. Rao" , Subject: Re: JDBC Driver Problem Date: Thu, 4 Apr 2002 07:56:55 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <01fd01c1dbd7$9930d350$41057aa3@tatainfotech.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Archive-Number: 200204/22 X-Sequence-Number: 3608 Gautham- Supplying as much of the source code as possible will make it more likely that someone can help solve the problem. I don't recall hearing of such a problem before, so this is probably not a known issue. At the very least, copies of the queries might help so we can try something similar in our environments. -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Gautham S. Rao Sent: Thursday, April 04, 2002 7:53 AM To: pgsql-jdbc@postgresql.org Subject: [JDBC] JDBC Driver Problem Hi, We have a query that involves 'union' and 'except' clause. When it is run on the psql database at the backend it retuns the required data. However, when it is executed using the jdbc driver it is returning less number of records. The statements after the union and except clause are not getting executed. Is this a bug in the JDBC driver? Also a similar problem is encountered in another query that uses 'case when <> then <> else <> end' the equivalent of 'decode'. This query returns records when exceuted at the backend, but when exceuted using the JDBC driver, it retuns no records. What could be the problem? Have any of you encountered a similar problem and how do we solve it? Regards, Gautham. From gautam.rao@tatainfotech.com Fri Apr 5 03:57:32 2002 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by postgresql.org (Postfix) with ESMTP id 891AD475852 for ; Thu, 4 Apr 2002 22:57:32 -0500 (EST) Received: from blrmail.in.tatainfotech.com (IDENT:root@localhost [127.0.0.1]) by brelay.tatainfotech.com (8.11.0/8.11.0) with ESMTP id g353wq617405 for ; Fri, 5 Apr 2002 09:29:00 +0530 Received: from dsspntw34 ([163.122.5.65]) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with SMTP id JAA10053 for ; Fri, 5 Apr 2002 09:29:07 +0530 Message-ID: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> From: "Gautham S. Rao" To: References: Subject: Re: JDBC Driver Problem Date: Fri, 5 Apr 2002 09:44:36 +0530 Organization: Tata Infotech Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/32 X-Sequence-Number: 3618 Hi Nick, Here is the query that is giving the problem, select bill_num, bill_par_num, to_char(bill_from_dt,'DD-Mon-YYYY') as bill_from_dt,to_char(BILL_TO_DT,'DD-Mon-YYYY') as BILL_TO_DT, to_char(BilL_AMT,'999999999.99') as BilL_AMT, to_char(BILL_DT,'DD-Mon-YYYY') as bill_dt, (bill_amt-paid_amt) as OUTSTANDING_AMT, to_char(BilL_Py_By_Dt,'DD-Mon-YYYY') as bill_py_by_dt,BilL_STAT,BilL_CURr_CD from((select bill_num, bill_par_num, bill_from_dt, BILL_TO_DT, BilL_AMT, coalesce(sum(pymt_amt),0)as paid_amt, BILL_DT, BilL_Py_By_Dt,BilL_STAT,BilL_CURr_CD from pc_t_payment,pc_t_bill where pymt_bill_num = bill_num and pymt_cust_id = group by bill_num, bill_par_num, bill_from_dt, BILL_TO_DT, bill_amt, BILL_DT, BilL_Py_By_Dt, BilL_STAT, BilL_CURr_CD) union (select bill_num, bill_par_num, bill_from_dt, BILL_TO_DT, BilL_AMT, 0 as paid_amt, BILL_DT, BilL_Py_By_Dt, BilL_STAT, BilL_CURr_CD from pc_t_bill where bill_cust_id = except (select bill_num, bill_par_num, bill_from_dt, BILL_TO_DT, BilL_AMT, 0 as paid_amt , BILL_DT, BilL_Py_By_Dt,BilL_STAT,BilL_CURr_CD from pc_t_payment,pc_t_bill where pymt_bill_num = bill_num and pymt_cust_id =))) as bill_tmp order by bill_num desc; This query returns 4 records when executed from the back end which is the desired result. But when it is executed using the JDBC driver for postgreSQL 7.1 and JDK 1.2, it returns only 3 records. This is the result of the first query excluding the union. So it appears as if only the first part of the query is working through the JDBC driver. This is the other query that is using CASE .. WHEN. Select bm_link from pc_m_banner where bm_type= and (CASE WHEN bm_ctg_cd= '' THEN ELSE bm_ctg_cd END) = It returns one record when excuted through the backend and no records when executed through the JDBC driver. Thanks & Regards, Gautham. ----- Original Message ----- From: "Nick Fankhauser" To: "Gautham S. Rao" ; Sent: Thursday, April 04, 2002 6:26 PM Subject: RE: [JDBC] JDBC Driver Problem > Gautham- > > Supplying as much of the source code as possible will make it more likely > that someone can help solve the problem. I don't recall hearing of such a > problem before, so this is probably not a known issue. > > At the very least, copies of the queries might help so we can try something > similar in our environments. > > -Nick > > -------------------------------------------------------------------------- > Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 > Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ > > -----Original Message----- > From: pgsql-jdbc-owner@postgresql.org > [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Gautham S. Rao > Sent: Thursday, April 04, 2002 7:53 AM > To: pgsql-jdbc@postgresql.org > Subject: [JDBC] JDBC Driver Problem > > > Hi, > > We have a query that involves 'union' and 'except' clause. When it is run on > the psql database at the backend it retuns the required data. However, when > it is executed using the jdbc driver it is returning less number of records. > The statements after the union and except clause are not getting executed. > Is this a bug in the JDBC driver? > > Also a similar problem is encountered in another query that uses 'case when > <> then <> else <> end' the equivalent of 'decode'. This query returns > records when exceuted at the backend, but when exceuted using the JDBC > driver, it retuns no records. What could be the problem? Have any of you > encountered a similar problem and how do we solve it? > > Regards, > Gautham. > From tgl@sss.pgh.pa.us Fri Apr 5 16:10:00 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id BADA5475AA2 for ; Fri, 5 Apr 2002 11:10:00 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g35G9xF24567; Fri, 5 Apr 2002 11:09:59 -0500 (EST) To: "Gautham S. Rao" Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC Driver Problem In-reply-to: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> References: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> Comments: In-reply-to "Gautham S. Rao" message dated "Fri, 05 Apr 2002 09:44:36 +0530" Date: Fri, 05 Apr 2002 11:09:58 -0500 Message-ID: <24564.1018022998@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/34 X-Sequence-Number: 3620 "Gautham S. Rao" writes: > This query returns 4 records when executed from the back end which is the > desired result. But when it is executed using the JDBC driver for postgreSQL > 7.1 and JDK 1.2, it returns only 3 records. This is the result of the first > query excluding the union. So it appears as if only the first part of the > query is working through the JDBC driver. Could the driver be dropping part of the query? I suggest turning on query logging at the backend (restart postmaster with -d2 switch, or set debug_print_query = true in postgresql.conf) and then look in the postmaster log to see exactly what query is being sent by JDBC. regards, tom lane From Dave@micro-automation.net Fri Apr 5 16:54:05 2002 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 706EC476707 for ; Fri, 5 Apr 2002 11:54:05 -0500 (EST) Received: (qmail 8035 invoked from network); 5 Apr 2002 16:54:07 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.123.128?) (64.7.143.116) by net2.micro-automation.com with SMTP; 5 Apr 2002 16:54:07 -0000 Subject: Re: JDBC Driver Problem From: Dave Cramer To: Tom Lane Cc: "Gautham S. Rao" , "pgsql-jdbc@postgresql.org" In-Reply-To: <24564.1018022998@sss.pgh.pa.us> References: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 (1.0.2-3) Date: 05 Apr 2002 11:52:51 -0500 Message-Id: <1018025572.20047.62.camel@inspiron.cramers> Mime-Version: 1.0 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200204/35 X-Sequence-Number: 3621 This would be my guess too. It would make sense that the code that is checking for escape sequences is broken Dave On Fri, 2002-04-05 at 11:09, Tom Lane wrote: > "Gautham S. Rao" writes: > > This query returns 4 records when executed from the back end which is the > > desired result. But when it is executed using the JDBC driver for postgreSQL > > 7.1 and JDK 1.2, it returns only 3 records. This is the result of the first > > query excluding the union. So it appears as if only the first part of the > > query is working through the JDBC driver. > > Could the driver be dropping part of the query? I suggest turning on > query logging at the backend (restart postmaster with -d2 switch, or > set debug_print_query = true in postgresql.conf) and then look in the > postmaster log to see exactly what query is being sent by JDBC. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > From gautam.rao@tatainfotech.com Mon Apr 8 11:44:32 2002 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by postgresql.org (Postfix) with ESMTP id 1578A474E78 for ; Mon, 8 Apr 2002 07:44:32 -0400 (EDT) Received: from blrmail.in.tatainfotech.com (IDENT:root@localhost [127.0.0.1]) by brelay.tatainfotech.com (8.11.0/8.11.0) with ESMTP id g38Bjx618562; Mon, 8 Apr 2002 17:16:03 +0530 Received: from dsspntw34 ([163.122.5.65]) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with SMTP id RAA30558; Mon, 8 Apr 2002 17:16:35 +0530 Message-ID: <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> From: "Gautham S. Rao" To: "Dave Cramer" , "Tom Lane" Cc: References: <005701c1dc58$65f7b590$41057aa3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us> <1018025572.20047.62.camel@inspiron.cramers> Subject: Re: JDBC Driver Problem Date: Mon, 8 Apr 2002 17:31:54 +0530 Organization: Tata Infotech Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/45 X-Sequence-Number: 3631 Hi Dave/Tom, Thanks very much for the suggestion. The problem was beacuse the paramaters in the where clause were not getting replaced with the actual values. This I could figure out from the log and have corrected the logic to handle it properly. Now the queries are working fine. Thanks & Regards, Gautham ----- Original Message ----- From: "Dave Cramer" To: "Tom Lane" Cc: "Gautham S. Rao" ; Sent: Friday, April 05, 2002 10:22 PM Subject: Re: [JDBC] JDBC Driver Problem > This would be my guess too. It would make sense that the code that is > checking for escape sequences is broken > > Dave > > On Fri, 2002-04-05 at 11:09, Tom Lane wrote: > > "Gautham S. Rao" writes: > > > This query returns 4 records when executed from the back end which is the > > > desired result. But when it is executed using the JDBC driver for postgreSQL > > > 7.1 and JDK 1.2, it returns only 3 records. This is the result of the first > > > query excluding the union. So it appears as if only the first part of the > > > query is working through the JDBC driver. > > > > Could the driver be dropping part of the query? I suggest turning on > > query logging at the backend (restart postmaster with -d2 switch, or > > set debug_print_query = true in postgresql.conf) and then look in the > > postmaster log to see exactly what query is being sent by JDBC. > > > > regards, tom lane > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > From Dave@micro-automation.net Tue Apr 9 00:03:18 2002 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id DBF4547585D for ; Mon, 8 Apr 2002 20:03:18 -0400 (EDT) Received: (qmail 26454 invoked from network); 9 Apr 2002 00:03:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.123.128?) (64.7.143.116) by net2.micro-automation.com with SMTP; 9 Apr 2002 00:03:19 -0000 Subject: Re: JDBC Driver Problem From: Dave Cramer To: "Gautham S. Rao" Cc: Tom Lane , "pgsql-jdbc@postgresql.org" In-Reply-To: <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> References: <005701c1dc58$65f7b590$41057aa 3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us> <1018025572.20047.62.camel@inspiron.cramers> <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 (1.0.2-3) Date: 08 Apr 2002 20:01:46 -0400 Message-Id: <1018310506.2899.18.camel@inspiron.cramers> Mime-Version: 1.0 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200204/47 X-Sequence-Number: 3633 Gautham, So what was the solution? Is the driver broken? Did you work around the problem? Dave On Mon, 2002-04-08 at 08:01, Gautham S. Rao wrote: > Hi Dave/Tom, > > Thanks very much for the suggestion. The problem was beacuse the paramaters > in the where clause were not getting replaced with the actual values. This I > could figure out from the log and have corrected the logic to handle it > properly. Now the queries are working fine. > > Thanks & Regards, > Gautham > > ----- Original Message ----- > From: "Dave Cramer" > To: "Tom Lane" > Cc: "Gautham S. Rao" ; > > Sent: Friday, April 05, 2002 10:22 PM > Subject: Re: [JDBC] JDBC Driver Problem > > > > This would be my guess too. It would make sense that the code that is > > checking for escape sequences is broken > > > > Dave > > > > On Fri, 2002-04-05 at 11:09, Tom Lane wrote: > > > "Gautham S. Rao" writes: > > > > This query returns 4 records when executed from the back end which is > the > > > > desired result. But when it is executed using the JDBC driver for > postgreSQL > > > > 7.1 and JDK 1.2, it returns only 3 records. This is the result of the > first > > > > query excluding the union. So it appears as if only the first part of > the > > > > query is working through the JDBC driver. > > > > > > Could the driver be dropping part of the query? I suggest turning on > > > query logging at the backend (restart postmaster with -d2 switch, or > > > set debug_print_query = true in postgresql.conf) and then look in the > > > postmaster log to see exactly what query is being sent by JDBC. > > > > > > regards, tom lane > > > > > > ---------------------------(end of broadcast)--------------------------- > > > TIP 6: Have you searched our list archives? > > > > > > http://archives.postgresql.org > > > > > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > From gautam.rao@tatainfotech.com Tue Apr 9 03:19:54 2002 Received: from brelay.tatainfotech.com (unknown [202.54.39.145]) by postgresql.org (Postfix) with ESMTP id C4D06474E6D for ; Mon, 8 Apr 2002 23:19:54 -0400 (EDT) Received: from blrmail.in.tatainfotech.com (IDENT:root@localhost [127.0.0.1]) by brelay.tatainfotech.com (8.11.0/8.11.0) with ESMTP id g393L7627967; Tue, 9 Apr 2002 08:51:07 +0530 Received: from dsspntw34 ([163.122.5.65]) by blrmail.in.tatainfotech.com (8.9.3/8.9.3) with SMTP id IAA21659; Tue, 9 Apr 2002 08:51:46 +0530 Message-ID: <004201c1df77$d0b946b0$41057aa3@tatainfotech.com> From: "Gautham S. Rao" To: "Dave Cramer" Cc: References: <005701c1dc58$65f7b590$41057aa 3@tatainfotech.com> <24564.1018022998@sss.pgh.pa.us><1018025572.20047.62.camel@inspiron.cramers> <01f101c1def5$2cfcbfc0$41057aa3@tatainfotech.com> <1018310506.2899.18.camel@inspiron.cramers> Subject: Re: JDBC Driver Problem Date: Tue, 9 Apr 2002 09:07:03 +0530 Organization: Tata Infotech Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200204/48 X-Sequence-Number: 3634 Hi Dave, The problem was not beacuse of the JDBC driver at all. In the query we had some parameters in the where clause that had to be replaced with the actual values during runtime. This piece of code was written in Java and the replacement logic was not handled properly. Only the first occurance of the parameter was getting replaced. The logic has now been changed to handle such situations also. Regards, Gautham. ----- Original Message ----- From: "Dave Cramer" To: "Gautham S. Rao" Cc: "Tom Lane" ; Sent: Tuesday, April 09, 2002 5:31 AM Subject: Re: [JDBC] JDBC Driver Problem > Gautham, > > So what was the solution? Is the driver broken? Did you work around the > problem? > > Dave > On Mon, 2002-04-08 at 08:01, Gautham S. Rao wrote: > > Hi Dave/Tom, > > > > Thanks very much for the suggestion. The problem was beacuse the paramaters > > in the where clause were not getting replaced with the actual values. This I > > could figure out from the log and have corrected the logic to handle it > > properly. Now the queries are working fine. > > > > Thanks & Regards, > > Gautham > > > > ----- Original Message ----- > > From: "Dave Cramer" > > To: "Tom Lane" > > Cc: "Gautham S. Rao" ; > > > > Sent: Friday, April 05, 2002 10:22 PM > > Subject: Re: [JDBC] JDBC Driver Problem > > > > > > > This would be my guess too. It would make sense that the code that is > > > checking for escape sequences is broken > > > > > > Dave > > > > > > On Fri, 2002-04-05 at 11:09, Tom Lane wrote: > > > > "Gautham S. Rao" writes: > > > > > This query returns 4 records when executed from the back end which is > > the > > > > > desired result. But when it is executed using the JDBC driver for > > postgreSQL > > > > > 7.1 and JDK 1.2, it returns only 3 records. This is the result of the > > first > > > > > query excluding the union. So it appears as if only the first part of > > the > > > > > query is working through the JDBC driver. > > > > > > > > Could the driver be dropping part of the query? I suggest turning on > > > > query logging at the backend (restart postmaster with -d2 switch, or > > > > set debug_print_query = true in postgresql.conf) and then look in the > > > > postmaster log to see exactly what query is being sent by JDBC. > > > > > > > > regards, tom lane > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > > > TIP 6: Have you searched our list archives? > > > > > > > > http://archives.postgresql.org > > > > > > > > > > > > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > > TIP 6: Have you searched our list archives? > > > > > > http://archives.postgresql.org > > > > > > > > > From dovle@kbs.twi.tudelft.nl Fri Nov 8 13:34:00 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0E4CE475F66 for ; Fri, 8 Nov 2002 08:34:00 -0500 (EST) Received: from chrysler.kbs.twi.tudelft.nl (chrysler.kbs.twi.tudelft.nl [130.161.157.133]) by postgresql.org (Postfix) with ESMTP id 79C5C475F25 for ; Fri, 8 Nov 2002 08:33:59 -0500 (EST) Received: from ford.kbs.twi.tudelft.nl (ford [130.161.157.145]) by chrysler.kbs.twi.tudelft.nl (Postfix) with ESMTP id BF85B8675 for ; Fri, 8 Nov 2002 14:34:02 +0100 (MET) Received: from dovle by ford.kbs.twi.tudelft.nl with local (Exim 3.35 #1 (Debian)) id 18A9Gs-0007OS-00 for ; Fri, 08 Nov 2002 14:34:02 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alex Dovlecel To: pgsql-jdbc@postgresql.org Subject: JDBC driver problem ? Date: Fri, 8 Nov 2002 14:34:02 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/79 X-Sequence-Number: 5376 Hello to all, This is my first question, so don't be mad if it is gonna be a silly one. I have a psql account on a psql server that runs psql 7.2.1. I want to connect to it by using java (jdbc). I downloaded the JDBC 2.0 driver (pgjdbc2.jar) and I am doing the following: System.out.println(" + Loading the driver" ); Class.forName( "org.postgresql.Driver" ) ; System.out.println(" + Creating a connection " ); con = DriverManager.getConnection( "jdbc:postgresql://myserver:5432/Test", "myaccount", "mypasswd" ) ; Loading the driver works. But can't obtain a connection due to: Exception: Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.sql.SQLException: FATAL 1: Password authentication failed for user "dovle" Stack Trace: java.sql.SQLException: FATAL 1: Password authentication failed for user "myaccount" at org.postgresql.Connection.openConnection(Connection.java:178) at org.postgresql.Driver.connect(Driver.java:149) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at Main.main(Main.java:18) End of Stack Trace But the password is correct!!! What could be wrong ? What should happen if the postgres does not run with the -i parameter ? Could this be the wrong thing that happened ? dovle From daniel@checkforte.com.br Fri Nov 8 14:05:47 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 099D2475F25 for ; Fri, 8 Nov 2002 09:05:47 -0500 (EST) Received: from checkforte.com.br (unknown [200.207.207.251]) by postgresql.org (Postfix) with ESMTP id B2B71475EBB for ; Fri, 8 Nov 2002 09:05:45 -0500 (EST) Received: from localhost.localdomain (kelly.ckf [192.168.0.11]) by checkforte.com.br (Postfix) with ESMTP id 0508DC3C8D; Fri, 8 Nov 2002 12:06:13 -0200 (BRST) Subject: Re: JDBC driver problem ? From: Daniel Serodio To: Alex Dovlecel Cc: PostgreSQL JDBC List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 08 Nov 2002 12:04:39 -0200 Message-Id: <1036764282.24409.23.camel@kelly> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/81 X-Sequence-Number: 5378 The "FATAL 1" message comes from the backend (server), so this means you're able to connect to it at the network level, so it must be running with -i. It's probably a problem in the authentication setup of the server. (pg_hba.conf). I don't know which types of authentication the driver supports, but we use "trust" for our internal network: host all 192.168.0.0 255.255.0.0 trust On Fri, 2002-11-08 at 11:34, Alex Dovlecel wrote: > Hello to all, > This is my first question, so don't be mad if it is gonna be a silly one. > > I have a psql account on a psql server that runs psql 7.2.1. I want to > connect to it by using java (jdbc). > > I downloaded the JDBC 2.0 driver (pgjdbc2.jar) and I am doing the following: > > System.out.println(" + Loading the driver" ); > Class.forName( "org.postgresql.Driver" ) ; > > System.out.println(" + Creating a connection " ); > con = DriverManager.getConnection( > "jdbc:postgresql://myserver:5432/Test", > "myaccount", > "mypasswd" ) ; > > Loading the driver works. But can't obtain a connection due to: > > Exception: Something unusual has occured to cause the driver to fail. Please > report this exception: Exception: java.sql.SQLException: FATAL 1: Password > authentication failed for user "dovle" > > Stack Trace: > > java.sql.SQLException: FATAL 1: Password authentication failed for user > "myaccount" > > at org.postgresql.Connection.openConnection(Connection.java:178) > at org.postgresql.Driver.connect(Driver.java:149) > at java.sql.DriverManager.getConnection(DriverManager.java:512) > at java.sql.DriverManager.getConnection(DriverManager.java:171) > at Main.main(Main.java:18) > End of Stack Trace > > > But the password is correct!!! > > What could be wrong ? > > What should happen if the postgres does not run with the -i parameter ? Could > this be the wrong thing that happened ? > > dovle > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html -- []'s Daniel Serodio From dovle@kbs.twi.tudelft.nl Fri Nov 8 14:30:30 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 080A147628E for ; Fri, 8 Nov 2002 09:30:30 -0500 (EST) Received: from chrysler.kbs.twi.tudelft.nl (chrysler.kbs.twi.tudelft.nl [130.161.157.133]) by postgresql.org (Postfix) with ESMTP id 49714476082 for ; Fri, 8 Nov 2002 09:30:29 -0500 (EST) Received: from ford.kbs.twi.tudelft.nl (ford [130.161.157.145]) by chrysler.kbs.twi.tudelft.nl (Postfix) with ESMTP id BC2B58675 for ; Fri, 8 Nov 2002 15:30:32 +0100 (MET) Received: from dovle by ford.kbs.twi.tudelft.nl with local (Exim 3.35 #1 (Debian)) id 18AA9Y-0007Vg-00 for ; Fri, 08 Nov 2002 15:30:32 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alex Dovlecel To: PostgreSQL JDBC List Subject: Re: JDBC driver problem ? Date: Fri, 8 Nov 2002 15:30:32 +0100 X-Mailer: KMail [version 1.3.2] References: <1036764282.24409.23.camel@kelly> In-Reply-To: <1036764282.24409.23.camel@kelly> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/84 X-Sequence-Number: 5381 Tx for the answer, Glad to hear this... but I have no clue about what should I do next I had tried to use an older driver (7.1 driver, jar called like this: jdbc7.1-1.2.jar) but gives me the following exception : Exception: The authentication type 5 is not supported. Check that you have configured the pg_hba.conf file to include the clients IP address or Subnet, and that it is using an authentication scheme supported by the driver. Do you have any sugestions? Tx, dovle > The "FATAL 1" message comes from the backend (server), so this means > you're able to connect to it at the network level, so it must be running > with -i. > > It's probably a problem in the authentication setup of the server. > (pg_hba.conf). I don't know which types of authentication the driver > supports, but we use "trust" for our internal network: > > host all 192.168.0.0 255.255.0.0 trust > > On Fri, 2002-11-08 at 11:34, Alex Dovlecel wrote: > > Hello to all, > > This is my first question, so don't be mad if it is gonna be a silly one. > > > > I have a psql account on a psql server that runs psql 7.2.1. I want to > > connect to it by using java (jdbc). > > > > I downloaded the JDBC 2.0 driver (pgjdbc2.jar) and I am doing the > > following: > > > > System.out.println(" + Loading the driver" ); > > Class.forName( "org.postgresql.Driver" ) ; > > > > System.out.println(" + Creating a connection " ); > > con = DriverManager.getConnection( > > "jdbc:postgresql://myserver:5432/Test", > > "myaccount", > > "mypasswd" ) ; > > > > Loading the driver works. But can't obtain a connection due to: > > > > Exception: Something unusual has occured to cause the driver to fail. > > Please report this exception: Exception: java.sql.SQLException: FATAL 1: > > Password authentication failed for user "dovle" > > > > Stack Trace: > > > > java.sql.SQLException: FATAL 1: Password authentication failed for user > > "myaccount" > > > > at org.postgresql.Connection.openConnection(Connection.java:178) > > at org.postgresql.Driver.connect(Driver.java:149) > > at java.sql.DriverManager.getConnection(DriverManager.java:512) > > at java.sql.DriverManager.getConnection(DriverManager.java:171) > > at Main.main(Main.java:18) > > End of Stack Trace > > > > > > But the password is correct!!! > > > > What could be wrong ? > > > > What should happen if the postgres does not run with the -i parameter ? > > Could this be the wrong thing that happened ? > > > > dovle > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/users-lounge/docs/faq.html From daniel@checkforte.com.br Fri Nov 8 15:59:36 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0688D476B8F for ; Fri, 8 Nov 2002 10:59:36 -0500 (EST) Received: from checkforte.com.br (unknown [200.207.207.251]) by postgresql.org (Postfix) with ESMTP id 63A454764ED for ; Fri, 8 Nov 2002 10:59:33 -0500 (EST) Received: from localhost.localdomain (kelly.ckf [192.168.0.11]) by checkforte.com.br (Postfix) with ESMTP id AF025C3C8E for ; Fri, 8 Nov 2002 13:59:59 -0200 (BRST) Subject: Re: JDBC driver problem ? From: Daniel Serodio To: PostgreSQL JDBC List In-Reply-To: References: <1036764282.24409.23.camel@kelly> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 08 Nov 2002 13:58:24 -0200 Message-Id: <1036771106.24423.30.camel@kelly> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/87 X-Sequence-Number: 5384 Looking at the source code for 7.2.1, which is what I have here, it looks like the driver supports the 'password', 'crypt', 'md5' and of course, 'trust' authentication schemes. Try using DriverManager.setLogStream(System.out) before getting the connection, the driver should print the auth scheme to System.out. On Fri, 2002-11-08 at 12:30, Alex Dovlecel wrote: > Tx for the answer, > Glad to hear this... but I have no clue about what should I do next > > I had tried to use an older driver (7.1 driver, jar called like this: > jdbc7.1-1.2.jar) but gives me the following exception : > > Exception: The authentication type 5 is not supported. Check that you have > configured the pg_hba.conf file to include the clients IP address or Subnet, > and that it is using an authentication scheme supported by the driver. > > Do you have any sugestions? > > Tx, > dovle > > > > The "FATAL 1" message comes from the backend (server), so this means > > you're able to connect to it at the network level, so it must be running > > with -i. > > > > It's probably a problem in the authentication setup of the server. > > (pg_hba.conf). I don't know which types of authentication the driver > > supports, but we use "trust" for our internal network: > > > > host all 192.168.0.0 255.255.0.0 trust > > > > On Fri, 2002-11-08 at 11:34, Alex Dovlecel wrote: > > > Hello to all, > > > This is my first question, so don't be mad if it is gonna be a silly one. > > > > > > I have a psql account on a psql server that runs psql 7.2.1. I want to > > > connect to it by using java (jdbc). > > > > > > I downloaded the JDBC 2.0 driver (pgjdbc2.jar) and I am doing the > > > following: > > > > > > System.out.println(" + Loading the driver" ); > > > Class.forName( "org.postgresql.Driver" ) ; > > > > > > System.out.println(" + Creating a connection " ); > > > con = DriverManager.getConnection( > > > "jdbc:postgresql://myserver:5432/Test", > > > "myaccount", > > > "mypasswd" ) ; > > > > > > Loading the driver works. But can't obtain a connection due to: > > > > > > Exception: Something unusual has occured to cause the driver to fail. > > > Please report this exception: Exception: java.sql.SQLException: FATAL 1: > > > Password authentication failed for user "dovle" > > > > > > Stack Trace: > > > > > > java.sql.SQLException: FATAL 1: Password authentication failed for user > > > "myaccount" > > > > > > at org.postgresql.Connection.openConnection(Connection.java:178) > > > at org.postgresql.Driver.connect(Driver.java:149) > > > at java.sql.DriverManager.getConnection(DriverManager.java:512) > > > at java.sql.DriverManager.getConnection(DriverManager.java:171) > > > at Main.main(Main.java:18) > > > End of Stack Trace > > > > > > > > > But the password is correct!!! > > > > > > What could be wrong ? > > > > > > What should happen if the postgres does not run with the -i parameter ? > > > Could this be the wrong thing that happened ? > > > > > > dovle -- []'s Daniel Serodio From sathishkumar.shanmugavelu@gmail.com Tue May 16 03:51:36 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9F51E9F9C18 for ; Tue, 16 May 2006 00:51:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 41275-02 for ; Tue, 16 May 2006 00:51:27 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by postgresql.org (Postfix) with ESMTP id C3E309F9C9E for ; Tue, 16 May 2006 00:51:27 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id s1so109055nze for ; Mon, 15 May 2006 20:51:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=gO5SWLEdPb8RLReweSmYAYY4ZUS6C+EEqgHs4u5iSbJxpmmkH8jWj9wsctszdvnU4ykTstyuYmUJ9lVbqhNVvdveBY0stU4ajmbZTzuk+Jzf7Eo64Da3ga7K3w76W8rJejxroZe0oKBhQMGwzelYPpwVieoe21rpwfuMdSeeMlI= Received: by 10.36.252.70 with SMTP id z70mr2325719nzh; Mon, 15 May 2006 20:51:26 -0700 (PDT) Received: by 10.36.60.12 with HTTP; Mon, 15 May 2006 20:51:26 -0700 (PDT) Message-ID: Date: Tue, 16 May 2006 09:21:26 +0530 From: "sathish kumar shanmugavelu" To: pgsql-jdbc@postgresql.org Subject: jdbc driver problem? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22268_25813644.1147751486706" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/49 X-Sequence-Number: 15177 ------=_Part_22268_25813644.1147751486706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, Iam using postgresql-8.2dev-501.jdbc3.jar jdbc. We used a query like SELECT * FROM patient_head WHERE patient_name =3D ? in the prepared statement. And set the parameter as setString(1,name) , where 'name' is the java string variable. while printing the prepared statement the query is displayed like SELECT * FROM patient_head WHERE patient_name =3D James Camero= on instead of SELECT * FROM patient_head WHERE patient_name =3D 'James Cameroon' with single quotes. It happens in both the 7.4.7 and 8.1 version of the postgresql. Because of this the query does not executes and no result is fetched. Why? do i miss anything? please help? with advanced thanks --=20 Sathish Kumar.S SpireTEK ------=_Part_22268_25813644.1147751486706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi all,
   Iam using postgresql-8.2dev-501.jdbc3.jar jdbc.
   We used a query like
            SELECT *= FROM patient_head WHERE  patient_name =3D ?
   in the prepared statement. And set the parameter as setString(= 1,name) , where 'name' is the java string variable.
   while printing the prepared statement the query is displayed l= ike
            SELECT * FROM patient_head WHERE  patient_name =3D James Cameroon
   instead of
             SELECT * FROM patient_head WHERE  patient_name =3D 'James Cameroon'    with single quotes.
   It happens in both the 7.4.7 and 8.1 version of the postgresql= .
   Because of this the query does not executes and no result is f= etched.
   Why? do i miss anything? please help?

with advanced thanks
--
Sathish Kumar.S
SpireTEK ------=_Part_22268_25813644.1147751486706-- From oliver@opencloud.com Tue May 16 05:43:11 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 136A69F9CEE for ; Tue, 16 May 2006 02:43:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 54358-08-3 for ; Tue, 16 May 2006 02:43:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 952A09F944D for ; Tue, 16 May 2006 02:43:00 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.169]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FfsKe-0006AU-OH; Tue, 16 May 2006 17:42:57 +1200 Message-ID: <4469665D.6050607@opencloud.com> Date: Tue, 16 May 2006 14:42:53 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: sathish kumar shanmugavelu CC: pgsql-jdbc@postgresql.org Subject: Re: jdbc driver problem? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/50 X-Sequence-Number: 15178 sathish kumar shanmugavelu wrote: > We used a query like > SELECT * FROM patient_head WHERE patient_name = ? > in the prepared statement. And set the parameter as setString(1,name) > , where 'name' is the java string variable. > while printing the prepared statement the query is displayed like > SELECT * FROM patient_head WHERE patient_name = James Cameroon > instead of > SELECT * FROM patient_head WHERE patient_name = 'James > Cameroon' > with single quotes. The JDBC API doesn't require that PreparedStatement.toString() will return the actual SQL to be executed, and the current driver doesn't try to get string escaping correct in toString(). It's a purely cosmetic issue, the query is correct when sent to the server. In fact, at the protocol level, the parameter values are *not* interpolated into the query string, they are sent separately. > It happens in both the 7.4.7 and 8.1 version of the postgresql. > Because of this the query does not executes and no result is fetched. The cause of your problem is something else. The return value of toString() is not relevant. If you run the same query via psql, does it return results? -O From oliver@opencloud.com Wed May 17 10:06:47 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 14FC79FA226 for ; Wed, 17 May 2006 07:06:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 67574-02 for ; Wed, 17 May 2006 07:06:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 1AE079F9C18 for ; Wed, 17 May 2006 07:06:36 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.142]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FgIvH-00045r-A8; Wed, 17 May 2006 22:06:31 +1200 Message-ID: <446AF5A6.9020904@opencloud.com> Date: Wed, 17 May 2006 19:06:30 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: sathish kumar shanmugavelu CC: pgsql-jdbc@postgresql.org Subject: Re: jdbc driver problem? References: <4469665D.6050607@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/69 X-Sequence-Number: 15197 sathish kumar shanmugavelu wrote: > Hi Oliver Jowett, > Yes if i run in psql it returns the result. > Even if i use pg73jdbc3.jar - postgresql jdbc driver it works fine. > please help > thanks in advance Hi, Please post to the list, not only to me. It may be an encoding/locale problem (though your example appears to be plain 7-bit ascii so I'm not sure). What encoding and locale does your database use? Can you give us a complete testcase that shows the problem? -O From sathishkumar.shanmugavelu@gmail.com Sat May 20 09:27:10 2006 X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 725AD9FA3B3 for ; Sat, 20 May 2006 06:27:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 64381-01 for ; Sat, 20 May 2006 06:27:05 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by postgresql.org (Postfix) with ESMTP id 5EC7E9F9EEB for ; Sat, 20 May 2006 06:27:05 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id 18so767989nzp for ; Sat, 20 May 2006 02:27:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=izjgfJAi14zKsZHc1g2sDDQtIrObxGQlFpcGWTvpmAfnbeHanURX08TWrZ79evsHBhqtOgIcSL7YtYXjDsJwQRXs/8v0V6gWdaQ39LcNrtDL2ATTHc3yF3wRkUUkOwEGCfygJ1540RNx3zgtyPfhe1hvW0B/xGH1Qb66HdMLSRs= Received: by 10.36.247.53 with SMTP id u53mr3164766nzh; Sat, 20 May 2006 02:27:04 -0700 (PDT) Received: by 10.36.60.12 with HTTP; Sat, 20 May 2006 02:27:04 -0700 (PDT) Message-ID: Date: Sat, 20 May 2006 14:57:04 +0530 From: "sathish kumar shanmugavelu" To: pgsql-jdbc@postgresql.org Subject: Re: jdbc driver problem? In-Reply-To: <446AF5A6.9020904@opencloud.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16608_1149437.1148117224089" References: <4469665D.6050607@opencloud.com> <446AF5A6.9020904@opencloud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/83 X-Sequence-Number: 15211 ------=_Part_16608_1149437.1148117224089 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi, We use UTF-8 encoding for the database. what infm. are needed in testcase thanks in advance On 5/17/06, Oliver Jowett wrote: > > sathish kumar shanmugavelu wrote: > > Hi Oliver Jowett, > > Yes if i run in psql it returns the result. > > Even if i use pg73jdbc3.jar - postgresql jdbc driver it works fine. > > please help > > thanks in advance > > Hi, > > Please post to the list, not only to me. > > It may be an encoding/locale problem (though your example appears to be > plain 7-bit ascii so I'm not sure). What encoding and locale does your > database use? > > Can you give us a complete testcase that shows the problem? > > -O > --=20 Sathish Kumar.S SpireTEK ------=_Part_16608_1149437.1148117224089 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi,
   We use UTF-8 encoding for the database.
  = what infm. are needed in testcase

thanks in advance

On 5/17/06, Oliver J= owett < oliver@opencloud.com> wrote:
sathish kumar shanmugavelu wrote:
> Hi Olive= r Jowett,
>    Yes if i run in psql it returns the result.=
>    Even if i use pg73jdbc3.jar - postgresql jd= bc driver it works fine.
>    please help
>= thanks in advance

Hi,

Please post to the list, not only to m= e.

It may be an encoding/locale problem (though your example appears t= o be
plain 7-bit ascii so I'm not sure). What encoding and locale does y= our
database use?

Can you give us a complete testcase that shows = the problem?

-O



--
Sathish K= umar.S
SpireTEK ------=_Part_16608_1149437.1148117224089--