Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jepett0 committed Sep 16, 2024
1 parent 482fa54 commit 38b5866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/core/kqp/ut/view/view_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ Y_UNIT_TEST_SUITE(TCreateAndDropViewTest) {
};
succeed("WITH security_invoker = true");
succeed("WITH (security_invoker = true)");
succeed("WITH (SeCuRitY_InVoKer = tRUE)"); // both option name and option value are case insensitive
succeed("WITH (security_invoker = tRuE)"); // bool parsing is flexible enough
succeed("WITH (security_invoker = false, security_invoker = true)");

{
// literal named expression
const TString creationQuery = std::format(R"(
$value = true;
$value = "true";
CREATE VIEW {} WITH security_invoker = $value AS {};
DROP VIEW {};
)",
Expand All @@ -280,7 +280,7 @@ Y_UNIT_TEST_SUITE(TCreateAndDropViewTest) {
{
// evaluated expression
const TString creationQuery = std::format(R"(
$value = 1 + 0;
$value = EvaluateExpr("true");
CREATE VIEW {} WITH security_invoker = $value AS {};
DROP VIEW {};
)",
Expand Down

0 comments on commit 38b5866

Please sign in to comment.