Skip to content

Commit

Permalink
fix: 指定カラム名の間違いを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Oct 31, 2023
1 parent 3ee5839 commit 99f06e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/infra/resource/src/database/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl FormDatabase for ConnectionPool {

let choices_rs = self
.query_all_and_values(
r"SELECT form_choices.question_id AS choice_question_id, choice FROM form_choices
r"SELECT form_choices.question_id, choice FROM form_choices
INNER JOIN form_questions ON form_choices.question_id = form_questions.question_id
WHERE form_id = ?",
[form_id.to_owned().into()],
Expand All @@ -427,7 +427,7 @@ impl FormDatabase for ConnectionPool {
questions_rs
.into_iter()
.map(|question_rs| {
let question_id: i32 = question_rs.try_get("", "choice_question_id")?;
let question_id: i32 = question_rs.try_get("", "question_id")?;

let choices = choices_rs
.iter()
Expand Down

0 comments on commit 99f06e6

Please sign in to comment.