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 5f15972 commit 6a42e05Copy full SHA for 6a42e05
examples/official-site/sqlpage/migrations/08_functions.sql
@@ -158,11 +158,11 @@ VALUES (
158
Generate a random string of 32 characters and use it as a session ID stored in a cookie:
159
160
```sql
161
-INSERT INTO login_session (id, username) VALUES (sqlpage.random_string(32), :username)
+INSERT INTO login_session (session_token, username) VALUES (sqlpage.random_string(32), :username)
162
RETURNING
163
''cookie'' AS component,
164
''session_id'' AS name,
165
- sqlpage.random_string(32) AS value;
+ session_token AS value;
166
```
167
'
168
);
0 commit comments