pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Edoardo Panfili <edoardo@aspix.it>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: error: operator does not exist: bigint = character varying
Date: Thu, 28 Jun 2007 11:28:05 +1200
Message-ID: <4682F285.10601@opencloud.com> (raw)
In-Reply-To: <4682D2C9.1010406@aspix.it>
References: <4682D2C9.1010406@aspix.it>

Edoardo Panfili wrote:

> org.postgresql.util.PSQLException: ERROR: operator does not exist: 
> bigint = character varying

> ps.setString(1, rilievo.dato[Rilievo.ID]);

Use a setter that's appropriate to the type e.g. setLong(), not setString().

-O



view thread (5+ messages)  latest in thread

Message-ID: <4682F285.10601@opencloud.com>
Permalink:  ../4682F285.10601@opencloud.com/
Also on:    postgresql.org/message-id/4682F285.10601@opencloud.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: oliver@opencloud.com, edoardo@aspix.it
  Subject: Re: error: operator does not exist: bigint = character varying
  In-Reply-To: <4682F285.10601@opencloud.com>
  References: <4682D2C9.1010406@aspix.it> <4682F285.10601@opencloud.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