Skip to content

Commit

Permalink
Parse option tests: Add test that combines special mode with a GUC op…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
lfittl committed Dec 20, 2023
1 parent 6bf25eb commit 7a819b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parse_opts_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const char* tests[] = {
"SELECT '\\''",
"96",
"{\"version\":150001,\"stmts\":[{\"stmt\":{\"SelectStmt\":{\"targetList\":[{\"ResTarget\":{\"val\":{\"A_Const\":{\"sval\":{\"sval\":\"'\"},\"location\":7}},\"location\":7}}],\"limitOption\":\"LIMIT_OPTION_DEFAULT\",\"op\":\"SETOP_NONE\"}}}]}",
"v3.c1 := '\\''",
"100",
"{\"version\":150001,\"stmts\":[{\"stmt\":{\"PLAssignStmt\":{\"name\":\"v3\",\"indirection\":[{\"String\":{\"sval\":\"c1\"}}],\"nnames\":2,\"val\":{\"targetList\":[{\"ResTarget\":{\"val\":{\"A_Const\":{\"sval\":{\"sval\":\"'\"},\"location\":9}},\"location\":9}}],\"limitOption\":\"LIMIT_OPTION_DEFAULT\",\"op\":\"SETOP_NONE\"}}}}]}",
};

size_t testsLength = __LINE__ - 4;

0 comments on commit 7a819b4

Please sign in to comment.