baasbox / Android-SDK

BaasBox Android SDK
Apache License 2.0
27 stars 26 forks source link

BaasQuery doesn't handle Where Params correctly #16

Closed f8k8 closed 10 years ago

f8k8 commented 10 years ago

The whereParams function in BaasQuery.java has:

public Builder whereParams(String... params){ if(params!=null&&params.length==0){ this.params = new ArrayList(); Collections.addAll(this.params, params); } return this; }

It looks like the second line should read params.length != 0 instead of params.length == 0, as the current implementation does not work when using where parameters.