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: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject



Thomas Hallgren <thomas(at)tada(dot)se> writes:
> Hmm, OK. I checked my code and I don't use any specific type. Instead, I 
> use SPI_getargtypeid(ePlan, idx) on the prepared query and the 
> pgType->typinput function of the type that corresponds to the returned 
> oid. Perhaps the SPI_getargtypeid should return varchar for all text types?

Certainly not.  That would break most normal uses of SPI_getargtypeid,
and I don't even see how it fixes your problem; once the query is
prepared these decisions are already made.

			regards, tom lane



Home | Main Index | Thread Index

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