pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: prof_trg <prof.target@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: select id returns null
Date: Sun, 10 May 2009 13:35:10 -0700 (PDT)
Message-ID: <23473788.post@talk.nabble.com> (raw)


Hello,
I am using postgresql, and spring jdbc, and when I tried to execute a select
query :
Code:
 
 private SimpleJdbcTemplate template;
List<User> res = template.query("select * from user where id=?", MAPPER,
id);

I don't know why the returned id is null, I'd like to add that the id is of
type BIGSERIAL in postgresql, and I get it as Long in java.
I'd like to add that other fields are well selected except the id, so is the
issue related to the serial type?
Regards 
-- 
View this message in context: http://www.nabble.com/select-id-returns-null-tp23473788p23473788.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.




Message-ID: <23473788.post@talk.nabble.com>
Permalink:  ../23473788.post@talk.nabble.com/
Also on:    postgresql.org/message-id/23473788.post@talk.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: prof.target@gmail.com
  Subject: Re: select id returns null
  In-Reply-To: <23473788.post@talk.nabble.com>
  References: <23473788.post@talk.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