Skip to content

Commit

Permalink
fix: sqlite query escaping (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr authored Feb 22, 2024
1 parent a6de477 commit 94ae1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml_metadata/metadata_store/sqlite_metadata_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ absl::Status SqliteMetadataSource::RollbackImpl() {
}

std::string SqliteMetadataSource::EscapeString(absl::string_view value) const {
return SqliteEscapeString(value);
return absl::StrCat("'", SqliteEscapeString(value), "'");
}

std::string SqliteMetadataSource::EncodeBytes(absl::string_view value) const {
Expand Down

0 comments on commit 94ae1e9

Please sign in to comment.