Variable scoping in SQLHelper.cfc
Closed this issue · 0 comments
Olentzero commented
When using criteria.maxResults(10) I was having a strange error on cborm/models/sql/SQLHelper.cfc line 202.
After some debugging I found out that we have a global udf function called 'factory' and it was taking this function instead of the local var.
I had to scope the factory variable like variables.factory.
Since "factory" can be a wide used variable or function name, I think it should be var scoped on cborm/models/sql/SQLHelper.cfc. Same could happen with other component variables