Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv3970
Modified Files:
SchemaUpdater.java
Log Message:
applied Michael Locher's patch to allow SchemaUpdate to configure Dialect correctly
Index: SchemaUpdater.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/tools/SchemaUpdater.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SchemaUpdater.java 14 Dec 2002 09:27:56 -0000 1.3
--- SchemaUpdater.java 24 Jan 2003 13:44:16 -0000 1.4
***************
*** 29,35 ****
--- 29,37 ----
private ConnectionProvider cp;
Datastore store;
+ Dialect dialect;
public SchemaUpdater(Datastore store) throws HibernateException, SQLException {
this.store = store;
+ dialect = Dialect.getDialect();
cp = ConnectionProviderFactory.newConnectionProvider();
***************
*** 38,41 ****
--- 40,44 ----
public SchemaUpdater(Datastore store, Properties connectionProperties) throws HibernateException {
this.store = store;
+ dialect = Dialect.getDialect(connectionProperties);
cp = ConnectionProviderFactory.newConnectionProvider(connectionProperties);
}
***************
*** 79,83 ****
public void execute(boolean script) throws SQLException, HibernateException {
! Dialect dialect = Dialect.getDialect();
Connection connection = cp.getConnection();
JdbcDatabaseInfo info = new JdbcDatabaseInfo(connection, dialect);
--- 82,86 ----
public void execute(boolean script) throws SQLException, HibernateException {
!
Connection connection = cp.getConnection();
JdbcDatabaseInfo info = new JdbcDatabaseInfo(connection, dialect);
|