-->
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.  [ 2 posts ] 
Author Message
 Post subject: SchemaUpdate uses like '%' which wont work with hsqldb
PostPosted: Mon Jan 26, 2004 6:04 pm 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
Hello !

In Hsqldb the tables do have schema null, now the SchemaUpdate uses a query like
select * from system_tables where table_schem like '%'
which do not return a row.

Now i am searching where to place the error:
1) should "table_schem like '%'" match to rows with null or
2) should the query changed to something like this
select * from system_tables where (table_schem like '%' or table_schem is null)

I prefer 2, SchemaUpdate should pass "null" if the schema is not required to be filtered.


Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 3:59 am 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
I posted a patch to use "null" instead of "%". This is according to the javadoc for the metadata.getTables and getColumns parameter description.


http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-649


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.