Patch for allowing jdbc to log sql queries

Поиск
Список
Период
Сортировка
От Deepak Bhole
Тема Patch for allowing jdbc to log sql queries
Дата
Msg-id 1064382642.13508.34.camel@zion
обсуждение исходный текст
Список pgsql-jdbc
Hi,

This patch allows JDBC to log SQL queries that are being sent to the
backend (including prepared/callable statements). It can be quite useful
when writing/debugging java applications that rely on dynamic queries.

The log is sent to the standard log stream managed by the DriverManager.
It can be enabled by adding a ?logtype=X to the URL. X, specifies the
type of statement to log. Currently, only type "all" is supported i.e.
log all statements going to the backend. The logging can also be turned
on/off by calling [enable|disable]SQLLogType(int type).

Also, since variable length is prepares/callable statements can be too
large, the number of characters of the variable value to be displayed
can be adjusted via setMaxSQLLogVarLen(). There is a upper limit of 256
and a lower limit of 32 characters.

Deepak

--
Deepak Bhole <dbhole@redhat.com>
Red Hat Canada Ltd.

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [CYGWIN] authentication
Следующее
От: "Chris Faulkner"
Дата:
Сообщение: Re: [CYGWIN] authentication