-->
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.  [ 1 post ] 
Author Message
 Post subject: SQL SELECT NULL AS table_cat... executes very much
PostPosted: Tue Apr 29, 2008 10:25 pm 
Newbie

Joined: Tue Sep 18, 2007 3:09 pm
Posts: 3
I found the the below "Generated SQL' is executing every much, and am not sure what is causing this or how to prevent this from happening if possible. Any suggestions on how to prevent this from happening are much appreciated!


Hibernate version:
3.2.6ga
Mapping documents (All properties other than connection):
<property name="hibernate.c3p0.acquire_increment">1</property>
<property name="hibernate.c3p0.idle_test_period">3</property> <!-- seconds -->
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.min_size">1</property>
<property name="hibernate.c3p0.timeout">20</property> <!-- seconds -->
<property name="hibernate.c3p0.initial_pool_size">1</property>
<property name="hibernate.c3p0.max_connection_age">120</property>

<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>

<property name="hibernate.current_session_context_class">thread</property>

<property name="hibernate.show_sql">false</property>
<property name="hibernate.format_sql">false</property>
<property name="hibernate.generate_statistics">false</property>

Name and version of the database you are using:
Oracle 10.1.0.2.0
Oracle JDBC Driver 11.1.0.6.0

The generated SQL:
SELECT NULL AS table_cat,

o.owner AS table_schem,

o.object_name AS table_name,

o.object_type AS table_type,

NULL AS remarks

FROM all_objects o

WHERE o.owner LIKE :1 ESCAPE :"SYS_B_0"

AND o.object_name LIKE :2 ESCAPE :"SYS_B_1"

AND o.object_type IN (:"SYS_B_2", :"SYS_B_3")

ORDER BY table_type, table_schem, table_name


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

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.