diff --git a/crates/db_schema_setup/src/diff_check.rs b/crates/db_schema_setup/src/diff_check.rs index 174d84690..33f11584f 100644 --- a/crates/db_schema_setup/src/diff_check.rs +++ b/crates/db_schema_setup/src/diff_check.rs @@ -36,6 +36,10 @@ pub(crate) fn get_dump() -> String { "--no-table-access-method", "--no-tablespaces", "--no-large-objects", + // Use a fake restrict key, rather than an auto-generated one. + // See https://github.com/sqlc-dev/sqlc/issues/4065 + "--restrict-key", + "empty", ]) .stderr(Stdio::inherit()) .output()