From 95f403449034cd9f9b977acad20de4d399df99c1 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Tue, 15 Sep 2020 10:52:23 +0800 Subject: [PATCH] fix bug in blob tags (#653) --- .../inc/azure/storage/blobs/blob_options.hpp | 2 +- .../azure-storage-blobs/test/blob_container_client_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_options.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_options.hpp index b63ce3f95..f885e0f8e 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_options.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_options.hpp @@ -30,7 +30,7 @@ namespace Azure { namespace Storage { namespace Blobs { * https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations#tags-predicate-syntax * for the format of SQL statements. */ - std::string TagConditions; + Azure::Core::Nullable TagConditions; }; /** diff --git a/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp b/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp index bdd092dd5..451f94fbb 100644 --- a/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp +++ b/sdk/storage/azure-storage-blobs/test/blob_container_client_test.cpp @@ -885,7 +885,7 @@ namespace Azure { namespace Storage { namespace Test { options.SourceConditions.TagConditions = successWhereExpression; EXPECT_NO_THROW(blobClient2.StartCopyFromUri(uri, options)); - options.SourceConditions.TagConditions.clear(); + options.SourceConditions.TagConditions.Reset(); blobClient2.SetTags(tags); options.AccessConditions.TagConditions = failWhereExpression;