Re: SQL logging

From: shaun (wojing..astmail.com.au)
Date: Fri Jul 15 2005 - 03:44:43 EDT

  • Next message: Andrus Adamchik: "Re: flattened relations on_the_fly"

    On Fri, 2005-07-15 at 09:15 +0200, Tore Halset wrote:
    > On Jul 15, 2005, at 4:47, shaun wrote:
    >
    >
    > > Cayenne logs SQL queries like so:
    > > SELECT t0.amount, t0.id,
    > > FROM payment t0
    > > WHERE t0.booking_id = ? [bind: 200]
    > >
    > > Is it currently possible to get the logging to print the actual SQL
    > > instead?
    > >
    >
    > That is the actual SQL. Cayenne uses prepared statements. Some JDBC-
    > drivers send the prepared statements to the database as - prepared
    > statements. Others create a non-prepared statement.
    >
    > - Tore.
    >
    Oh Ok, I didn't realise that.
    Thanks for pointing that out to me.

    cheers,
    shaun



    This archive was generated by hypermail 2.0.0 : Fri Jul 15 2005 - 03:44:55 EDT