Synchronization code

This commit is contained in:
sunkaixuan 2023-10-19 22:32:15 +08:00
parent 598c388295
commit 1a91c8b6b5

View File

@ -517,7 +517,7 @@ WHERE table_name = '" + tableName + "'");
public static string ExtractSchema(string connectionString) public static string ExtractSchema(string connectionString)
{ {
string pattern = @"(?i)(?:^|;)schema=(\w+)"; string pattern = @"(?i)(?:^|;)schema=(\w+)";
Match match = Regex.Match(connectionString, pattern,RegexOptions.IgnoreCase); Match match = Regex.Match(connectionString?.Replace(" ",""), pattern,RegexOptions.IgnoreCase);
return match.Success ? match.Groups[1].Value : null; return match.Success ? match.Groups[1].Value : null;
} }
public override bool IsAnyTable(string tableName, bool isCache = true) public override bool IsAnyTable(string tableName, bool isCache = true)