Use a string interpolation and escape single quotes when escaping tables

This commit is contained in:
James Puleo 2022-10-05 07:19:19 -04:00
parent cb3ff0c2ce
commit aa17f013c1
No known key found for this signature in database
GPG key ID: 3E16C7EFA34FB15D

View file

@ -172,7 +172,7 @@ namespace TShockAPI.DB
/// <returns></returns>
protected override string EscapeTableName(string table)
{
return table.SFormat("'{0}'", table);
return $"\'{table}\'";
}
}