fix #3653 - mySQL installation failing on Rows reserved word
This commit is contained in:
@ -75,6 +75,14 @@ namespace Oqtane.Database.MySQL
|
||||
return dr;
|
||||
}
|
||||
|
||||
public override string RewriteName(string name, bool isQuery)
|
||||
{
|
||||
if (name.ToLower() == "rows" && isQuery)
|
||||
{
|
||||
name = $"`{name}`"; // escape reserved word in SQL query
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
public override DbContextOptionsBuilder UseDatabase(DbContextOptionsBuilder optionsBuilder, string connectionString)
|
||||
{
|
||||
|
Reference in New Issue
Block a user