Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
setRulesFromSql method in the Syncfusion Angular QueryBuilder component.When using the LIKE operator in a SQL expression without parentheses, the setRulesFromSql method fails to parse the input, even though the SQL is valid and commonly used in natural syntax.This doesn't work: this.queryBuilder.setRulesFromSql("name LIKE '%HUDSON%'"); But this works: this.queryBuilder.setRulesFromSql("name LIKE ('%HUDSON%')"); |
https://stackblitz.com/edit/angular-jcflwm-2pxsd4ex?file=src%2Fapp.component.ts
Replication :
Expected :
setRulesFromSql method in Angular QueryBuilder should correctly parse valid SQL expressions using the LIKE operator without requiring parentheses. setRulesFromSql method fails to parse the SQL expression unless the value in the LIKE clause is enclosed in parentheses: