pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Minal <minalac@yes2etl.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: postgresql.stat.result
Date: Wed, 03 Aug 2005 14:00:23 +0530
Message-ID: <42F0809F.50407@yes2etl.com> (raw)
In-Reply-To: <42F06BC0.8080405@opencloud.com>
References: <42F05EA7.4000102@yes2etl.com>
	<42F06BC0.8080405@opencloud.com>

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
>
>  
>




view thread (4+ messages)

Message-ID: <42F0809F.50407@yes2etl.com>
Permalink:  ../42F0809F.50407@yes2etl.com/
Also on:    postgresql.org/message-id/42F0809F.50407@yes2etl.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: minalac@yes2etl.com, oliver@opencloud.com
  Subject: Re: postgresql.stat.result
  In-Reply-To: <42F0809F.50407@yes2etl.com>
  References: <42F05EA7.4000102@yes2etl.com> <42F06BC0.8080405@opencloud.com> <42F0809F.50407@yes2etl.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox