-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: SQL statement without question marks indicate ?
PostPosted: Wed Mar 29, 2006 1:32 pm 
Newbie

Joined: Tue Mar 07, 2006 8:31 am
Posts: 7
Hello,

if I set show_sql on true, I see the SQL batch, but instead of the variable I see only the question marks:

insert into one.document (pdf, xml, xsl, title, desc, id) values (?, ?, ?, ?, ?, ?)


How can I see complete statement with values?

Eugene


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 1:52 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
In H configuration
<property name="hibernate.type">true</property>

in log4j configuration
log4j.logger.org.hibernate.type=DEBUG
log4j.logger.custtype=DEBUG

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 2:24 pm 
Newbie

Joined: Tue Mar 07, 2006 8:31 am
Posts: 7
nevertheless it shows:

20:20:24,968 DEBUG [SQL] insert into one.document (pdf, XML, XSL, title, desc, id) values (?, ?, ?, ?, ?, ?)
Hibernate: insert into one.document (pdf, XML, XSL, title, desc, id) values (?, ?, ?, ?, ?, ?)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 3:33 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Please make sure that the confuguration files are used and free of typos.
Make sure also that log4j's appender has appropriate threshold.

Log should show something like this:
Hibernate: delete from idfclient where exists (select dotaz1_.id from dotaz dotaz1_ where idfclient.dotaz_id=dotaz1_.id and dotaz1_.id=?)
1985 [main] DEBUG org.hibernate.type.StringType - binding 'a' to parameter: 1

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.