Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 87B84633036 for ; Sun, 10 May 2009 17:35:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88296-06 for ; Sun, 10 May 2009 17:35:47 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 8C6726324C5 for ; Sun, 10 May 2009 17:35:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx3.hub.org (Postfix) with ESMTP id 118AF37B403 for ; Sun, 10 May 2009 17:35:46 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M3Fjq-0001mV-6r for pgsql-jdbc@postgresql.org; Sun, 10 May 2009 13:35:10 -0700 Message-ID: <23473788.post@talk.nabble.com> Date: Sun, 10 May 2009 13:35:10 -0700 (PDT) From: prof_trg To: pgsql-jdbc@postgresql.org Subject: select id returns null MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: prof.target@gmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/50 X-Sequence-Number: 19600 Hello, I am using postgresql, and spring jdbc, and when I tried to execute a select query : Code: private SimpleJdbcTemplate template; List 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.