update sqlc gen
This commit is contained in:
parent
469ccf80e2
commit
3c3445b8fc
@ -537,7 +537,7 @@ WITH Funnel AS (
|
||||
Questions AS (
|
||||
SELECT
|
||||
q.title AS question_title,
|
||||
NULL AS answer_content,
|
||||
a.content AS answer_content,
|
||||
CAST(COUNT(*) * 100.0 / NULLIF(q.total_answers, 0) AS INTEGER) AS percentage
|
||||
FROM
|
||||
answer a
|
||||
|
||||
@ -1631,7 +1631,7 @@ WITH Funnel AS (
|
||||
Questions AS (
|
||||
SELECT
|
||||
q.title AS question_title,
|
||||
NULL AS answer_content,
|
||||
a.content AS answer_content,
|
||||
CAST(COUNT(*) * 100.0 / NULLIF(q.total_answers, 0) AS INTEGER) AS percentage
|
||||
FROM
|
||||
answer a
|
||||
@ -1692,7 +1692,7 @@ type QuestionsStatisticsRow struct {
|
||||
ResultsTitle string `db:"results_title" json:"results_title"`
|
||||
ResultsPercentage int32 `db:"results_percentage" json:"results_percentage"`
|
||||
QuestionsTitle string `db:"questions_title" json:"questions_title"`
|
||||
AnswerContent interface{} `db:"answer_content" json:"answer_content"`
|
||||
AnswerContent sql.NullString `db:"answer_content" json:"answer_content"`
|
||||
QuestionsPercentage int32 `db:"questions_percentage" json:"questions_percentage"`
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user