Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/NHibernate/Async/Tool/hbm2ddl/SchemaExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ public async Task ExecuteAsync(Action<string> scriptAction, bool execute, bool j
{
if (connectionProvider != null)
{
connectionProvider.CloseConnection(connection);
if (connection != null)
{
connectionProvider.CloseConnection(connection);
}

connectionProvider.Dispose();
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/NHibernate/Tool/hbm2ddl/SchemaExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,11 @@ private void InitConnectionAndExecute(Action<string> scriptAction, bool execute,
{
if (connectionProvider != null)
{
connectionProvider.CloseConnection(connection);
if (connection != null)
{
connectionProvider.CloseConnection(connection);
}

connectionProvider.Dispose();
}
}
Expand Down
2 changes: 1 addition & 1 deletion teamcity.build
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<property name="db-service" value="MySQL57" />
<property name="nhibernate.connection.driver_class" value="NHibernate.Driver.MySqlDataDriver" />
<property name="nhibernate.dialect" value="NHibernate.Dialect.MySQL5Dialect" />
<property name="nhibernate.connection.connection_string" value="Data Source=localhost;Database=nhibernate;User ID=nhibernate;Password=nhibernate;Protocol=memory;Old Guids=True;" />
<property name="nhibernate.connection.connection_string" value="Data Source=localhost;Database=nhibernate;User ID=nhibernate;Password=nhibernate;Protocol=memory;Old Guids=True;SslMode=none;" />
</target>

<target name="setup-teamcity-sqlanywhere">
Expand Down