diff --git a/ml_metadata/metadata_store/sqlite_metadata_source.cc b/ml_metadata/metadata_store/sqlite_metadata_source.cc index fa3482453..7c1fb2e1f 100644 --- a/ml_metadata/metadata_store/sqlite_metadata_source.cc +++ b/ml_metadata/metadata_store/sqlite_metadata_source.cc @@ -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 {