You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So here are steps to repro: new Query('Account').debug().countQuery();
throws: Error on line 1587, column 1: System.QueryException: unexpected token: ')' Class.Query.countQuery: line 1587, column 1
After removing the debug() call it works fine: new Query('Account').countQuery();
This is because debug() calls toQueryString() -> formQueryStringPreformat() -> formFieldString(), which does functionFieldList.isEmpty() too early and adds Id to field set.
The text was updated successfully, but these errors were encountered:
Hi
Thanks for great work!
So here are steps to repro:
new Query('Account').debug().countQuery();
throws:
Error on line 1587, column 1: System.QueryException: unexpected token: ')' Class.Query.countQuery: line 1587, column 1
After removing the debug() call it works fine:
new Query('Account').countQuery();
This is because debug() calls toQueryString() -> formQueryStringPreformat() -> formFieldString(), which does functionFieldList.isEmpty() too early and adds Id to field set.
The text was updated successfully, but these errors were encountered: