Skip to content

Row level secutiry #464

@Alexnortung

Description

@Alexnortung

Describe the bug

It is fine that pg-mem does not support row level security, but I think it would be nice if it just supported the syntax and would show an error or something.

💔 Your query failed to parse.
This is most likely due to a SQL syntax error. However, you might also have hit a bug, or an unimplemented feature of pg-mem.
If this is the case, please file an issue at https://github.com/oguimbal/pg-mem along with a query that reproduces this syntax error.

👉 Failed query:

    CREATE TABLE "public"."guide" (
	"id" uuid NOT NULL
);

ALTER TABLE "public"."guide" ENABLE ROW LEVEL SECURITY;;

💀 Syntax error at line 5 col 37:

  ALTER TABLE "public"."guide" ENABLE ROW
                                      ^
Unexpected word token: "row". I did not expect any more input. Here is the state of my parse table:

    kw_owner → %word ● 
    kw_alter → %word ● 
    kw_drop → %word ● 
    kw_add → %word ● 
    kw_rename → %word ● 

To Reproduce

CREATE TABLE "public"."guide" (
	"id" uuid NOT NULL
);

ALTER TABLE "public"."guide" ENABLE ROW LEVEL SECURITY;

pg-mem version

3.0.5

(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions