From f66331f79169f7643e10012311d52a288f8ec6ae Mon Sep 17 00:00:00 2001 From: ChihYu Yeh Date: Thu, 3 Aug 2023 15:28:16 +0800 Subject: [PATCH] fix typo --- packages/doc/docs/data-privacy/cls.mdx | 2 +- packages/doc/docs/data-privacy/rls.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/doc/docs/data-privacy/cls.mdx b/packages/doc/docs/data-privacy/cls.mdx index a6e4ab0b..28c7fd0f 100644 --- a/packages/doc/docs/data-privacy/cls.mdx +++ b/packages/doc/docs/data-privacy/cls.mdx @@ -8,7 +8,7 @@ SELECT employee_id, first_name, last_name, - {% if context.user.attr.department = 'intern' %} + {% if context.user.attr.department == 'intern' %} NULL AS salary {% else %} salary diff --git a/packages/doc/docs/data-privacy/rls.mdx b/packages/doc/docs/data-privacy/rls.mdx index 3c51f35a..e31005a7 100644 --- a/packages/doc/docs/data-privacy/rls.mdx +++ b/packages/doc/docs/data-privacy/rls.mdx @@ -13,7 +13,7 @@ Moreover, you can generate an error if a user attempts to access data they are n For example, to prevent interns from accessing data after 2023, the following query can be employed: ```sql -{% if context.user.attr.department = 'intern' and context.params.year < 2023 %} +{% if context.user.attr.department == 'intern' and context.params.year < 2023 %} {% error "OUT_OF_LIMITED" %} {% endif %} ```