Use a string interpolation and escape single quotes when escaping tables
This commit is contained in:
parent
cb3ff0c2ce
commit
aa17f013c1
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ namespace TShockAPI.DB
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
protected override string EscapeTableName(string table)
|
protected override string EscapeTableName(string table)
|
||||||
{
|
{
|
||||||
return table.SFormat("'{0}'", table);
|
return $"\'{table}\'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue