From: Xavier Bugaud <xavier(dot)bugaud(at)parabolemaurice(dot)com>
To: "'mweilguni(at)sime(dot)com'" <mweilguni(at)sime(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject:
Date: 2002-08-02 14:00:04
Message-ID: A4AAC8CD87A2D511B796004005420B1F64CEE3@PMSERVER
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> might it be possible that "id" is not type integer/int4, e.g. numeric or
int8?
>
> try this query:
> rs2.executeUpdate("UPDATE my_table SET my_date=now() WHERE id='"+i+"'");

Yes !
you've got it... Now, postgres uses "Index Scan".

"id" is an int8. I didn't knew that it has to be quoted in order to be
interpreted into something else than an int4.

Thanks to everybody.

--
Xavier Bugaud

Responses

  • Re: at 2002-08-02 15:07:30 from Mario Weilguni

Browse pgsql-general by date

  From Date Subject
Next Message Josh Jore 2002-08-02 14:05:14 Re: How i can empty the buffers of a db
Previous Message Johnson, Shaunn 2002-08-02 13:48:46 DDL / DML question