scottvonduhn
04/29/2019, 4:31 PMfunction getAsBoolean(value) { return util.isBoolean(value) ? value : (value === 'T' ? true : false); }
. I haven't tested that, but something like that should work.
As for why returning the search works that way, it may be because the results passed back to the M/R script are not filtered through whatever SS 2.0 functions convert the string values to booleans, and are closer to the actual database stored values.
This is all purely speculation, but I have noticed the same inconsistency. I worked in a Java / Oracle environment for 6 years, and we had a wrapper class for Hibernate to convert 'Y' and 'N' to Boolean on retrieval using similar logic, but occasionally people used direct SQL queries, and then had to deal with the raw results, which were single character strings.stalbert
04/30/2019, 11:49 PM