From d58b475ba472ea08937df2d183ad394d9438eceb Mon Sep 17 00:00:00 2001 From: Jacob Emil Ulvedal Rosborg Date: 2023年12月15日 00:28:27 +0100 Subject: [PATCH] fix: remove locking on schema --- sqlx-postgres/src/testing/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-postgres/src/testing/mod.rs b/sqlx-postgres/src/testing/mod.rs index 2d2f203b23..778613f5d1 100644 --- a/sqlx-postgres/src/testing/mod.rs +++ b/sqlx-postgres/src/testing/mod.rs @@ -119,9 +119,9 @@ async fn test_context(args: &TestArgs) -> Result, Error> { // I couldn't find a bug on the mailing list for `CREATE SCHEMA` specifically, // but a clearly related bug with `CREATE TABLE` has been known since 2007: // https://www.postgresql.org/message-id/200710222037.l9MKbCJZ098744%40wwwmaster.postgresql.org - r#" - lock table pg_catalog.pg_namespace in share row exclusive mode; + // lock table pg_catalog.pg_namespace in share row exclusive mode; + r#" create schema if not exists _sqlx_test; create table if not exists _sqlx_test.databases (

AltStyle によって変換されたページ (->オリジナル) /