We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32ad90 commit f8d5fb0Copy full SHA for f8d5fb0
examples/corporate-conundrum/wait.sql
@@ -1,13 +1,12 @@
1
-- Redirect to the next question when all players have answered
2
-select 'shell' as component,
3
- CASE
+select CASE
4
(SELECT count(*) FROM answers WHERE question_id = $question_id AND game_id = $game_id::integer)
5
WHEN (SELECT count(*) FROM players WHERE game_id = $game_id::integer)
6
THEN '0; next-question.sql?game_id=' || $game_id || '&player=' || $player
7
ELSE 3
8
END as refresh,
9
- shell.*
10
-FROM shell;
+ sqlpage_shell.*
+FROM sqlpage_shell;
11
-- Insert the answer into the answers table
12
INSERT INTO answers(game_id, player_name, question_id, answer_value)
13
SELECT $game_id::integer as game_id,
0 commit comments