Skip to content

Commit

Permalink
Fix Cockroach NQ problem
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-tom committed Dec 16, 2024
1 parent ef2545e commit cdd7938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crates/configuration/src/version4/native_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ const OID_QUERY: &str = "
SELECT
typnamespace::regnamespace::text as schema_name,
typname as type_name,
oid::integer
oid::INT8
FROM pg_type
WHERE oid in (SELECT unnest($1))
WHERE oid::INT8 in (SELECT unnest($1::INT8[]))
";

/// Representation of a result row returned from the oid lookup query.
#[derive(Debug, sqlx::FromRow)]
struct OidQueryRow {
schema_name: String,
type_name: String,
oid: i32,
oid: i64,
}
6 changes: 3 additions & 3 deletions crates/configuration/src/version5/native_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ const OID_QUERY: &str = "
SELECT
typnamespace::regnamespace::text as schema_name,
typname as type_name,
oid::integer
oid::INT8
FROM pg_type
WHERE oid in (SELECT unnest($1))
WHERE oid::INT8 in (SELECT unnest($1::INT8[]))
";

/// Representation of a result row returned from the oid lookup query.
#[derive(Debug, sqlx::FromRow)]
struct OidQueryRow {
schema_name: String,
type_name: String,
oid: i32,
oid: i64,
}

0 comments on commit cdd7938

Please sign in to comment.