|
23 KB
|
14 KB
From Emil:
A simple way to establish if error is thrown while executing a valid (from syntax perspective) MongoSQL command or a potential MongoJS one is to invoke com.aquafold.library.common.parsers.unsql.ParserUtils.parse(commandStr, true) whenever an error is encountered. If this method invocation succeeds without throwing an exception, then the given command is is a valid MongoSQL one, thus the "If you want to execute MongoDB JavaScript commands .... " informational message should not be displayed. If exception is thrown while invoking ParserUtils.parse(), then the given command might be a MongoJS command, case in which the informational message should be appended.
Verified in ADS 17.0.0-ga-19. Only error message is displayed.
Verified in ADS 17.0.0-ga-19. Only error message is displayed.
Issue #14062 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 17.0.0-ga-19 |
No time estimate |
From Emil:
A simple way to establish if error is thrown while executing a valid (from syntax perspective) MongoSQL command or a potential MongoJS one is to invoke com.aquafold.library.common.parsers.unsql.ParserUtils.parse(commandStr, true) whenever an error is encountered. If this method invocation succeeds without throwing an exception, then the given command is is a valid MongoSQL one, thus the "If you want to execute MongoDB JavaScript commands .... " informational message should not be displayed. If exception is thrown while invoking ParserUtils.parse(), then the given command might be a MongoJS command, case in which the informational message should be appended.