Re: getProcedureColumns

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: getProcedureColumns
Дата
Msg-id Pine.BSO.4.64.0702141026340.23853@leary.csoft.net
обсуждение исходный текст
Ответ на Re: getProcedureColumns  (Jeffrey Cox <namredips@gmail.com>)
Ответы Re: getProcedureColumns  (Jeffrey Cox <namredips@gmail.com>)
Список pgsql-jdbc

On Wed, 14 Feb 2007, Jeffrey Cox wrote:

> I can make them handy, but when you say they don't work do you mean it
> crashes, or what exactly. I ask only because the DBMS seems to have varying
> support for the method overall. below 7.3 not being able to support the call
> at all, below 8.0 not supporting argument names and below 8.1 not supporting
> argument modes. when I say not supporting, I mean there is not column for the
> data in 'pg_proc'. I didn't actually try this against those over servers, but
> looked it up in the respective documentation of each server version. I
> suppose that information might reside in another table, I will have to
> install the other versions and find out.

1) Your tests try to create functions with named and output parameters
unconditionally.  These can't be created on older servers.

2) The code you've added to TestUtil uses dollar quoting which isn't available on all
servers.

3) The code in getProcedureColumns fails with a "couldn't find a column
named ..." for older server versions.  You need to either add ", NULL as
colname" to the sql for older versions or not fetch these columns
unconditionally.

>> 1) It's better to send all your changes as one patch instead of one per
>> file.  It makes it easier to apply.
>
> good to know, would you like me to resend them?
>

No, that's just a minor inconvenience, not an actual problem.

Kris Jurka

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

Предыдущее
От: "Kevin Birkett"
Дата:
Сообщение: Re: Connection state after network failure?
Следующее
От: "Blakely, Jerel \(Mission Systems\)"
Дата:
Сообщение: Problem with jdbc connection behavior