We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dce6bd commit a9dfb4fCopy full SHA for a9dfb4f
sqlx-postgres/src/testing/mod.rs
@@ -134,8 +134,9 @@ async fn test_context(args: &TestArgs) -> Result<TestContext<Postgres>, Error> {
134
// I couldn't find a bug on the mailing list for `CREATE SCHEMA` specifically,
135
// but a clearly related bug with `CREATE TABLE` has been known since 2007:
136
// https://www.postgresql.org/message-id/200710222037.l9MKbCJZ098744%40wwwmaster.postgresql.org
137
+ // magic constant 8318549251334697844 is just 8 ascii bytes 'sqlxtest'.
138
r#"
- lock table pg_catalog.pg_namespace in share row exclusive mode;
139
+ select pg_advisory_xact_lock(8318549251334697844);
140
141
create schema if not exists _sqlx_test;
142
0 commit comments