Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject
Дата
Msg-id 7957.1151442476@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-jdbc
Thomas Hallgren <thomas@tada.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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: [Fwd: Re: [Pljava-dev] char with trailing space, PreparedStatement.setObject