[jbosstools-dev] Re: bug in SchemaExport

Max Rydahl Andersen max.andersen at redhat.com
Fri Feb 8 18:01:47 EST 2008


This is an issue for hibernate.

Attach patch at http://opensource.atlassian.com/projects/hibernate/browse/HHH-2403 for the existing issue and it can be incorporated.

/max

> 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.
>
> 



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




More information about the jbosstools-dev mailing list