[jbosstools-dev] bug in SchemaExport

Vitali Yemialyanchyk vyemialyanchyk at exadel.com
Fri Feb 8 14:40:51 EST 2008


Max,

 

I find bug in org.hibernate.tool.hbm2ddl.SchemaExport.  The problem is in ->

private void importScript(Reader importFileReader, Statement statement)

 

cause we read buffer line by line

 

                               BufferedReader reader = new BufferedReader(
importFileReader );

                               for ( String sql = reader.readLine(); sql !=
null; sql = reader.readLine() ) {

 

and then execute statement - this is not a true in all cases - cause we
could have multiline statements:

So I got exceptions here. I think I can fix it - but I think this is not in
my sphere of responsibilities or?

Should I create JIRA issue for it?

 

Vitali.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20080208/b9f4559f/attachment.html 


More information about the jbosstools-dev mailing list