DATACOUCH-310 - Convert N1ql query parameter enums to string values

Original pull request: #148.
This commit is contained in:
Subhashni Balakrishnan
2017-06-08 17:09:05 -07:00
parent 70343b0ac1
commit c7e4801305
2 changed files with 10 additions and 1 deletions

View File

@@ -172,6 +172,8 @@ public class N1qlQueryCreatorUtils {
Expression converted;
if (next instanceof String) {
converted = s((String) next);
} else if (next instanceof Enum) {
converted = s(String.valueOf(next));
} else {
converted = x(String.valueOf(next));
}