You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
-**variables** . SQLPage now support setting and reusing variables between statements. This allows you to write more complex SQL queries, and to reuse the result of a query in multiple places.
6
6
```sql
7
7
-- Set a variable
8
-
SET person ='Alice';
8
+
SET person =(select username from users where id = $id);
9
9
-- Use it in a query
10
10
SELECT'text'AS component, 'Hello '|| $person AS contents;
11
11
```
@@ -20,6 +20,11 @@
20
20
from json_each(sqlpage.exec('curl', 'https://jsonplaceholder.typicode.com/users'));
21
21
```
22
22
This function is disabled by default for security reasons. To enable it, set the `allow_exec` configuration parameter to `true` in the [configuration](./configuration.md). Enabling it gives full access to the server to anyone who can write SQL queries on your website (this includes users with access to the local filesystem and users with write access to the `sqlpage_files` table on your database), so be careful !
23
+
- New `sqlpage.url_encode` function to percent-encode URL parameters.
0 commit comments