From a3cc76d5c64f96eec19ee6ff02e66a5a09b6fb34 Mon Sep 17 00:00:00 2001 From: Mario Montoya Date: Tue, 28 Nov 2023 16:14:24 -0500 Subject: [PATCH] Hotfix for log replay bug, fix type for constraints column (#604) --- crates/core/src/db/datastore/locking_tx_datastore/mod.rs | 2 +- crates/core/src/db/datastore/system_tables.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/db/datastore/locking_tx_datastore/mod.rs b/crates/core/src/db/datastore/locking_tx_datastore/mod.rs index 2cb962470c..d665d46d21 100644 --- a/crates/core/src/db/datastore/locking_tx_datastore/mod.rs +++ b/crates/core/src/db/datastore/locking_tx_datastore/mod.rs @@ -2746,7 +2746,7 @@ mod tests { ColRow { table: 4, pos: 0, name: "constraint_id", ty: AlgebraicType::U32, autoinc: true }, ColRow { table: 4, pos: 1, name: "constraint_name", ty: AlgebraicType::String, autoinc: false }, - ColRow { table: 4, pos: 2, name: "constraints", ty: AlgebraicType::U32, autoinc: false }, + ColRow { table: 4, pos: 2, name: "constraints", ty: AlgebraicType::U8, autoinc: false }, ColRow { table: 4, pos: 3, name: "table_id", ty: AlgebraicType::U32, autoinc: false }, ColRow { table: 4, pos: 4, name: "columns", ty: AlgebraicType::array(AlgebraicType::U32), autoinc: false }, diff --git a/crates/core/src/db/datastore/system_tables.rs b/crates/core/src/db/datastore/system_tables.rs index 9465ee8a3d..a19d3cf8cf 100644 --- a/crates/core/src/db/datastore/system_tables.rs +++ b/crates/core/src/db/datastore/system_tables.rs @@ -499,7 +499,7 @@ pub(crate) fn st_constraints_schema() -> TableSchema { table_id: ST_CONSTRAINTS_ID, col_id: StConstraintFields::Constraints.col_id(), col_name: StConstraintFields::Constraints.col_name(), - col_type: AlgebraicType::U32, + col_type: AlgebraicType::U8, is_autoinc: false, }, ColumnSchema {