mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Update mysql bug
This commit is contained in:
@@ -382,7 +382,7 @@ WHERE EVENT_OBJECT_TABLE = '"+tableName+"'");
|
||||
public override bool CreateDatabase(string databaseName, string databaseDirectory = null)
|
||||
{
|
||||
|
||||
if (this.Context.Ado.IsValidConnection())
|
||||
if (this.Context.Ado.IsValidConnection()&&this.Context.Ado.Connection.Database?.ToLower()==databaseName?.ToLower())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user