When you edit an ESQL file, you
can save it to preserve the additions and modifications that you have
made, and to force the editor to validate the content of the file.
About this task
To save an ESQL file, complete the
following steps.
Procedure
- Change the contents of the ESQL file.
- Save the file by clicking or .
When
you save the file, the validator is called by the editor to check
that the ESQL obeys all grammar and syntax rules (specified by the
syntax diagrams and explanations in ESQL reference).
You can request additional
validation when you set ESQL preferences:
- Click .
The
Preferences dialog box is displayed.
- Select the level of validation that you require for
each category of error:
- Unresolved identifiers
- Message references do not match message definitions
- Database references do not match database schema
- Use of deprecated keywords
The default level is warning; you can change
this value to error or ignore.
Validating
message definitions can affect response times in the editor, particularly
if you have complicated ESQL that makes many references to a complex
message definition. You might choose to delay this validation. Call
validation when you have finished developing the message flow and
are about to deploy it, to avoid runtime errors.
For
each error found, the editor writes the code line number and the reason
for the error; errors are created as entries in the Problems view.
- If you double-click the error, the editor positions your
cursor on the line in which it found that error.
The
line is also highlighted by the error icon
.
The editor might also find potential
error situations, which it highlights as warnings (with the warning
icon); the editor also writes
these warnings to the Problems view. For example, you might have included
a BROKER SCHEMA
statement that references an invalid
schema (namespace).
Check your code, and make the corrections
required by that statement or function.