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 71AFA52C30 for ; Wed, 3 Aug 2005 05:33:30 -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 71021-03 for ; Wed, 3 Aug 2005 08:33:29 +0000 (GMT) Received: from gatekeeper.yes2etl.com (unknown [202.88.179.103]) by svr1.postgresql.org (Postfix) with ESMTP id 5411552C52 for ; Wed, 3 Aug 2005 05:33:27 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by gatekeeper.yes2etl.com (8.12.10/8.12.10) with ESMTP id j74G9NFG010925; Thu, 4 Aug 2005 21:39:23 +0530 Received: from gatekeeper.yes2etl.com ([127.0.0.1]) by localhost (gatekeeper [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10602-03; Thu, 4 Aug 2005 21:39:23 +0530 (IST) Received: from mtracks.yes2etl.com (mtracks.yes2etl.com [10.1.2.53]) by gatekeeper.yes2etl.com (8.12.10/8.12.10) with ESMTP id j74G9MfF010921; Thu, 4 Aug 2005 21:39:22 +0530 Received: from localhost (localhost [127.0.0.1]) by mtracks.yes2etl.com (8.12.10/8.12.10) with ESMTP id j738WRgn007593; Wed, 3 Aug 2005 14:02:27 +0530 Received: from mtracks.yes2etl.com ([127.0.0.1]) by localhost (mtracks [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32724-06; Wed, 3 Aug 2005 14:02:27 +0530 (IST) Received: from [10.1.2.15] (pc-15.yes2etl.com [10.1.2.15]) by mtracks.yes2etl.com (8.12.10/8.12.10) with ESMTP id j738WFow007575; Wed, 3 Aug 2005 14:02:15 +0530 Message-ID: <42F0809F.50407@yes2etl.com> Date: Wed, 03 Aug 2005 14:00:23 +0530 From: Minal User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Subject: Re: postgresql.stat.result References: <42F05EA7.4000102@yes2etl.com> <42F06BC0.8080405@opencloud.com> In-Reply-To: <42F06BC0.8080405@opencloud.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at @@NET_SUBDOMAIN@@.yes2etl.com X-Virus-Scanned: by amavisd-new at @@NET_SUBDOMAIN@@.@@NET_DOMAIN@@ X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/21 X-Sequence-Number: 13590 Thanks are you aqare of any books on JSP-POSTGRES Oliver Jowett wrote: >Minal wrote: > > > >>sql="SELECT sp_login ('INSERT','admin','"+username+"','"+password+"')"; >>//sql="INSERT INTO USERS (USERTYPE,USERNAME,PASSWORD) VALUES >>('admin','"+username+"','"+password+"')"; >> pStat=conn.prepareStatement(sql); >> >> > >On another topic, either you need to ensure that username/password are >correctly escaped, or you should use '?' placeholders and use >setString() to set them. Otherwise you have a SQL injection hole there. > >-O > >---------------------------(end of broadcast)--------------------------- >TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > >