From: Guillaume Cottenceau <gc@mnc.ch>
To: Rob Kirkbride <rob@rkcomputing.co.uk>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: More Verbose Logging of Statements
Date: 10 Nov 2005 17:52:11 +0100
Message-ID: <87irv0bg3o.fsf@meuh.mnc.ch> (raw)
In-Reply-To: <43737329.1050606@rkcomputing.co.uk>
References: <437334FD.6000509@rkcomputing.co.uk>
<Pine.BSO.4.61.0511101112450.28629@leary.csoft.net>
<43737329.1050606@rkcomputing.co.uk>
Rob Kirkbride <rob 'at' rkcomputing.co.uk> writes:
> OK. Thanks. :-( It's to debug things like where you get constraint
> violation on keys but you don't what the key was. I guess I'd have to
> try and get the client to do it - hibernate - but this tends to print
> $s as well!
If it could be of some help - I use PreparedStatement#toString()
in my code for such things. It has the problem of not quoting the
strings properly but other that that it's cool. Maybe hibernate
has some sort of options for doing this? (I don't use it) (yet)
--
Guillaume Cottenceau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: gc@mnc.ch, rob@rkcomputing.co.uk
Subject: Re: More Verbose Logging of Statements
In-Reply-To: <87irv0bg3o.fsf@meuh.mnc.ch>
References: <437334FD.6000509@rkcomputing.co.uk> <Pine.BSO.4.61.0511101112450.28629@leary.csoft.net> <43737329.1050606@rkcomputing.co.uk> <87irv0bg3o.fsf@meuh.mnc.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox