Bug in setProperties in query builder

Are you looking for help?

Bug report

Backendless Version (3.x / 5.x, Online / Managed / Pro )

5.2.2

Client SDK (REST / Android / Objective-C / Swift / JS )

Android

Application ID

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

1.Set properties on query builder should clear the existing properties and set the new one
2.
3.

Actual Behavior

set properties is appending properties rather than setting them

Reproducible Test Case

queryBuilder.setProperties( “Sum(budget)”);
queryBuilder.setProperties( “Price”);

It is setting properties to Sum and Price. It should be only Price as per function name

The work around is to do queryBuilder.getProperties().clear();

Hello,

The internal ticket BKNDLSS-19381 created. Our Android developer will respond as soon as possible.

Regards,
Olga

A little clarification - you are using queryBuilder is DataQueryBuilder?

Yes correct

Ticket marked as resolved. I assume fix will be available in the next release of Android-SDK.

Regards,
Olha

Great.
Thank you