Closed jbaur-sdocs closed 11 months ago
Hi @jbaur-sdocs!
Thank you for your ticket! Nice work! 🥇
We can treat it as a bug. I will provide fix for it in next 24 hours!
@jbaur-sdocs code is on the main branch. I also added 2 new test methods to cover case you mentioned.
Please check and confirm if it works as expected. 🤝
Thanks for the fast turn around on this!!!
My pleasure @mgellada-sd ! 👯
Works as expected. Thank you for the quick fix!
Calling
.toString()
on a SOQL instance with a FilterGroup leads to aSystem.StringException
when query is executed. We're using.toString()
in a logging class to log the query before executing it. It's not clear if doing.toString()
before executing is unsupported behavior or if this is a bug.Steps to reproduce
Expected behavior
query.toString()
should returnSELECT Name FROM Account WHERE (Name = :v1 AND Id = :v2)
andquery.toObject()
should return the specified Account.