Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: about function overload,a bug?



cncinfo(at)126(dot)com wrote:

It seems "timestamp without time zone" is same as "character varying" in
jdbc,so jdbc invoke wrong function.

Unfortunately the JDBC driver must pass timestamp parameters without type data and let the server infer the correct type to use (this is necessary to have both "timestamp with time zone" and "timestamp without time zone" operate correctly).

In your case the server is inferring the wrong type for what you want.

An explicit cast in your query may fix it.

-O



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group