Skip to content

Commit 82688ed

Browse files
Function calls are using SET instead of SELECT (#521)
* Function calls are using SET instead of SELECT I only found this bug but could be others: ``` mysql> SET audit_log_filter_set_filter('test', @filter); ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('test', @filter)' at line 1 mysql> select audit_log_filter_set_filter('test', @filter); +----------------------------------------------+ | audit_log_filter_set_filter('test', @filter) | +----------------------------------------------+ | OK | +----------------------------------------------+ 1 row in set (0.01 sec) * Remove filtername
1 parent 4657644 commit 82688ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/audit-log-filter-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ This function returns either an `OK` for success or an error message for failure
284284
#### Example
285285

286286
```{.bash data-prompt="mysql>"}
287-
mysql> SET @filter = '{ "filter_name": { "log": true }}'
288-
mysql> SET audit_log_filter_set_filter('filter-name', @filter);
287+
mysql> SET @filter = '{ "filter": { "log": true }}'
288+
mysql> SELECT audit_log_filter_set_filter('filter-name', @filter);
289289
```
290290

291291
??? example "Expected output"

0 commit comments

Comments
 (0)