Skip to content

Commit

Permalink
fixup! Convert double-quoted SQL string literals to single-quoted.
Browse files Browse the repository at this point in the history
Unit tests fixed (1):

  * DatabaseUtil.GenerateStringInCase
  • Loading branch information
mariospr committed Jul 27, 2021
1 parent c39bbb6 commit a9579c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ TEST(DatabaseUtil, GenerateStringInCase) {

// one item
result = GenerateStringInCase({"id_1"});
ASSERT_EQ(result, "\"id_1\"");
ASSERT_EQ(result, "'id_1'");

// multiple items
result = GenerateStringInCase({"id_1", "id_2", "id_3"});
ASSERT_EQ(result, "\"id_1\", \"id_2\", \"id_3\"");
ASSERT_EQ(result, "'id_1', 'id_2', 'id_3'");
}

} // namespace database
Expand Down

0 comments on commit a9579c3

Please sign in to comment.