You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails to retrieve the schema name from the connection string when there is an extra space in the connection string - From Azure Portal the Connection strings have an extra space among the parts.
Potential fix is in the foreach loop where the token is trimmed any extra spaces.
File: src\dbup-mysql\MySqlExtensions.cs
public static class MySqlExtensions
{
/// <summary>
/// Creates an upgrader for MySql databases.
/// </summary>
/// <param name="supported">Fluent helper type.</param>
/// <param name="connectionString">MySql database connection string.</param>
/// <returns>
/// A builder for a database upgrader designed for MySql databases.
/// </returns>
public static UpgradeEngineBuilder MySqlDatabase(this SupportedDatabases supported, string connectionString)
{
foreach (var pair in connectionString.Split(';').Select(s => s.Split('=')).Where(pair => pair.Length == 2).Where(pair => pair[0].Trim().ToLower() == "database"))
{
return MySqlDatabase(new MySqlConnectionManager(connectionString), pair[1]);
}
return MySqlDatabase(new MySqlConnectionManager(connectionString));
}
The text was updated successfully, but these errors were encountered:
Fails to retrieve the schema name from the connection string when there is an extra space in the connection string - From Azure Portal the Connection strings have an extra space among the parts.
Potential fix is in the foreach loop where the token is trimmed any extra spaces.
File: src\dbup-mysql\MySqlExtensions.cs
The text was updated successfully, but these errors were encountered: