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.
1 parent ff7643e commit fe6adb7Copy full SHA for fe6adb7
TestSupport/EfHelpers/Internal/NpgsqlDatabaseCleaner.cs
@@ -159,13 +159,19 @@ NOT EXISTS (
159
160
private void DropCollations(NpgsqlConnection conn)
161
{
162
-#if NET6_0_OR_GREATER
+#if NET6_0
163
if (conn.Settings.ServerCompatibilityMode == ServerCompatibilityMode.Redshift)
164
165
return;
166
}
167
#endif
168
169
+#if NET7_0_OR_GREATER
170
+ var connectionStringBuilder = new NpgsqlConnectionStringBuilder(conn.ConnectionString);
171
+ if (connectionStringBuilder.ServerCompatibilityMode == ServerCompatibilityMode.Redshift) return;
172
+#endif
173
+
174
175
const string getUserCollations = @"SELECT nspname, collname
176
FROM pg_collation coll
177
JOIN pg_namespace ns ON ns.oid=coll.collnamespace
0 commit comments