mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 12:37:24 +01:00
Restore necessary database string warning suppression
This commit is contained in:
@@ -240,7 +240,9 @@ namespace Tgstation.Server.Host.Setup
|
||||
using (var command = testConnection.CreateCommand())
|
||||
{
|
||||
// I really don't care about user sanitization here, they want to fuck their own DB? so be it
|
||||
#pragma warning disable CA2100 // Review SQL queries for security vulnerabilities
|
||||
command.CommandText = $"CREATE DATABASE {databaseName}";
|
||||
#pragma warning restore CA2100 // Review SQL queries for security vulnerabilities
|
||||
await command.ExecuteNonQueryAsync(cancellationToken);
|
||||
}
|
||||
|
||||
@@ -248,7 +250,9 @@ namespace Tgstation.Server.Host.Setup
|
||||
await console.WriteAsync("Dropping test database...", true, cancellationToken);
|
||||
using (var command = testConnection.CreateCommand())
|
||||
{
|
||||
#pragma warning disable CA2100 // Review SQL queries for security vulnerabilities
|
||||
command.CommandText = $"DROP DATABASE {databaseName}";
|
||||
#pragma warning restore CA2100 // Review SQL queries for security vulnerabilities
|
||||
try
|
||||
{
|
||||
await command.ExecuteNonQueryAsync(cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user