summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-08 13:19:02 +0000
committersoryu <soryu@soryu.co>2026-02-08 13:19:02 +0000
commit62d411f61893486680ded5921a8b86b483ee1144 (patch)
tree1f98ff3a72dc75d2334e89b1f8e5ab719664e854
parent657a8e55796c9f0cc6f30937de545ed91f052063 (diff)
downloadsoryu-62d411f61893486680ded5921a8b86b483ee1144.tar.gz
soryu-62d411f61893486680ded5921a8b86b483ee1144.zip
Fix INT4/INT8 type mismatch in create_directive_chain
-rw-r--r--makima/src/db/repository.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs
index ed56fff..63493b9 100644
--- a/makima/src/db/repository.rs
+++ b/makima/src/db/repository.rs
@@ -5309,7 +5309,7 @@ pub async fn create_directive_chain(
total_steps: i32,
) -> Result<DirectiveChain, sqlx::Error> {
// Get next generation number
- let next_gen: (i64,) = sqlx::query_as(
+ let next_gen: (i32,) = sqlx::query_as(
"SELECT COALESCE(MAX(generation), 0) + 1 FROM directive_chains WHERE directive_id = $1",
)
.bind(directive_id)
@@ -5324,7 +5324,7 @@ pub async fn create_directive_chain(
"#,
)
.bind(directive_id)
- .bind(next_gen.0 as i32)
+ .bind(next_gen.0)
.bind(name)
.bind(description)
.bind(rationale)