Skip to content

Commit 6757add

Browse files
authored
Remove obsolete comment.
ON CONFLICT (xxx) DO NOTHING is natively supported by sqlite. https://sqlite.org/lang_upsert.html
1 parent ed78380 commit 6757add

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
INSERT INTO user_info (username, password_hash)
22
VALUES (:username, sqlpage.hash_password(:password))
3-
ON CONFLICT (username) DO NOTHING -- this syntax is PostgreSQL-specific. In SQLite, use ON CONFLICT IGNORE.
3+
ON CONFLICT (username) DO NOTHING
44
RETURNING
55
'redirect' AS component,
66
'create_user_welcome_message.sql?username=' || :username AS link;
77

88
-- If we are still here, it means that the user was not created
99
-- because the username was already taken.
10-
SELECT 'redirect' AS component, 'create_user_welcome_message.sql?error&username=' || :username AS link;
10+
SELECT 'redirect' AS component, 'create_user_welcome_message.sql?error&username=' || :username AS link;

0 commit comments

Comments
 (0)