-
-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add another option to process null bind list #1377
Comments
I don't see how EmptyHandling would offer a solution here, that option only controls what the I'm not familiar with using StringTemplate, but it seems odd to me that it considers Does your code work when you pass in an |
StringTemplate evaluate like this:
Currently EmptyHandling value processed like:
yes.but everyone invoke this method need to know this trick(empty list will evaluated to false),and convert a null value to empty list |
Hmm, I think the reason we insert |
fix #1377: BindList conditionals with null and StringTemplate
Current for this sql use BindList and StringTemplate4
when resourceIds input is null,the sql will render to
but i want it render to
currently a workaround way is convert input null to a empty list,but not everyone invoke this method know this trick
can BindList.EmptyHandling add another option?we can process null list like this:
The text was updated successfully, but these errors were encountered: