Skip to content

Commit 3690953

Browse files
committed
fix typo in documentation
1 parent f46ccf5 commit 3690953

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/modeling a many to many relationship with a form/write.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ SELECT 'Content' AS name, 'textarea' AS type, 'The content of the post. Write so
66
SELECT 'Main Topic' AS name,
77
'select' AS type,
88
'The main topic of the post. This will be used to display the post in the main page.' AS description,
9-
json_group_array(json_object("label", name, "value", id)) AS options
9+
json_group_array(json_object('label', name, 'value', id)) AS options
1010
FROM topic;
1111
SELECT 'Topics[]' AS name, 'checkbox' AS type, 'Check if this post should also appear in the "' || topic.name || '" category.' AS description, topic.id AS value, topic.name AS label FROM topic;

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ In SQLite, the query would look like
323323
SELECT
324324
''select'' as type,
325325
json_group_array(json_object(
326-
"label", name,
327-
"value", id
326+
''label'', name,
327+
''value'', id
328328
)) as options
329329
FROM fruits
330330
```

examples/splitwise/group.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SELECT 'form' as component, 'Add an expense' as title, 'Add' as validate;
2121
SELECT 'Description' AS name;
2222
SELECT 'Amount' AS name, 'number' AS type;
2323
SELECT 'Spent By' AS name, 'select' as type,
24-
json_group_array(json_object("label", name, "value", id)) as options
24+
json_group_array(json_object('label', name, 'value', id)) as options
2525
FROM group_member WHERE group_id = $id;
2626

2727
-- Insert the expense posted by the form into the database

0 commit comments

Comments
 (0)