[odb-users] how to see the sql executing?
杨江骅
spiritonly at gmail.com
Sat Aug 27 20:31:11 EDT 2011
Hi,
Thank you so much! I will try to check my database log for help.
此致
敬礼
----------------------------------------------------------------------
gtalk: spiritonly at gmail.com
msn: spiritonly at live.cn
blog: http://blog.csdn.net/spirit_only
On Sat, Aug 27, 2011 at 2:07 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:
> Hi,
>
> spiritonly at gmail.com writes:
>
> > I want to see the sql executing like hibernate
>
> ODB doesn't support this. For performance reasons we use prepared
> statements throughout and pass data in binary form. As a result,
> it will be very difficult to print anything meaningful. The best
> we could do is to print a statement without the data, so you
> would see something like INSERT INTO Foo VALUES(?, ?, ?) -- not
> very useful.
>
> The better way to achieve this would be to use the database server
> logs. Most (all?) database servers provide the ability to see the
> SQL statements as they are being executed. Check your database
> server documentation for more information on how to do this.
>
> Boris
>
More information about the odb-users
mailing list