pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sivakumar <sivaraj2205@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Prepared statement with function as argument: how to bind values?
Date: Mon, 24 Mar 2014 23:13:27 -0700 (PDT)
Message-ID: <1395728007716-5797354.post@n5.nabble.com> (raw)
In-Reply-To: <26b8239e-b98b-4edf-ad07-28dd9063ddd7@m37g2000yqc.googlegroups.com>
References: <71a63038-181d-46ea-9af6-4231d8c279a4@o15g2000vbe.googlegroups.com>
	<CADK3HH+9qy3QVvBs_ycuhiR_FXivxAG7jc-AzYerVM=vVYn1xg@mail.gmail.com>
	<CAH_hXRas_aMNSbotahEuMTHU6KjgwJsztEO9K1hY+7gEXY_NCA@mail.gmail.com>
	<132b310f-65ae-494f-a2bb-e314c1b6c7c5@n12g2000yqh.googlegroups.com>
	<CAH_hXRacBHtR1bX0_VypvXcgtxKG6OKXkBk0BCKew5NyK=S9Eg@mail.gmail.com>
	<26b8239e-b98b-4edf-ad07-28dd9063ddd7@m37g2000yqc.googlegroups.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

I think it's too late to respond for this issue, but i hope it will be useful
for someone else. I also faced the same issue of binding, how i solved
isString sql = "INSERT INTOpoi(geom,latitude,longitude,description,comment)
VALUES(*ST_GeomFromText(?, 4326)*, ?, ?, ?, ?)";stmt =
conn.prepareStatement(sql);*stmt.setString(1, "POINT(" +lon + " " + lat +
")");*stmt.setFloat(2, lon);stmt.setFloat(3, lat);stmt.setTimestamp(4,
descr);stmt.setString(5, comment); Thanks,Sivakumar



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Prepared-statement-with-function-as-argument-how-to-bind-val...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

view thread (11+ messages)  latest in thread

Message-ID: <1395728007716-5797354.post@n5.nabble.com>
Permalink:  ../1395728007716-5797354.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1395728007716-5797354.post@n5.nabble.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: sivaraj2205@gmail.com
  Subject: Re: Prepared statement with function as argument: how to bind values?
  In-Reply-To: <1395728007716-5797354.post@n5.nabble.com>
  References: <71a63038-181d-46ea-9af6-4231d8c279a4@o15g2000vbe.googlegroups.com> <CADK3HH+9qy3QVvBs_ycuhiR_FXivxAG7jc-AzYerVM=vVYn1xg@mail.gmail.com> <CAH_hXRas_aMNSbotahEuMTHU6KjgwJsztEO9K1hY+7gEXY_NCA@mail.gmail.com> <132b310f-65ae-494f-a2bb-e314c1b6c7c5@n12g2000yqh.googlegroups.com> <CAH_hXRacBHtR1bX0_VypvXcgtxKG6OKXkBk0BCKew5NyK=S9Eg@mail.gmail.com> <26b8239e-b98b-4edf-ad07-28dd9063ddd7@m37g2000yqc.googlegroups.com> <1395728007716-5797354.post@n5.nabble.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