We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03c91a6 + 3b913a3 commit 98f3789Copy full SHA for 98f3789
Respawn/SqlServerDbAdapter.cs
@@ -330,7 +330,7 @@ private static async Task<byte> GetCompatibilityLevel(DbConnection connection)
330
command.CommandText = $@"
331
SELECT compatibility_level
332
FROM sys.databases
333
-WHERE name = '{connection.Database}';";
+WHERE name = N'{connection.Database}';";
334
335
var result = await command.ExecuteScalarAsync().ConfigureAwait(false);
336
return result != null ? Convert.ToByte(result) : (byte)0;
0 commit comments