Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The table below describes what number ranges are reserved for what parts of the code, and also points to the enum file for those number ranges if one exists.

Number RangeComponentEnum File
1000-1999DDL code (core/sql/sqlcomp/* modules)sqlcomp/CmpDDLCatErrorCodes.h 
2000-2999SQL compiler mainline (core/sql/arkcmp/* modules + the core/sql/sqlcomp/* modules that aren't DDL modules)  arkcmp/CmpErrors.h
3000-3999Parser (core/sql/parser/*) 
 

4000-4999Binder (core/sql/optimizer/Bind*) 
 

5000-5999Normalizer (core/sql/optimizer/Norm*) 
 

6000-6999Optimizer (core/sql/optimizer/ <everything else> )optimizer/opt_error.h 
7000-7999Generator (core/sql/generator/*) 
 

8000-8999Executor and Expressions code (core/sql/executor/* and core/sql/exp/*) exp/ExpErrorEnums.h 
9200-9299Update Statistics utility (core/sql/ustat/*) ustat/hs_const.h 
10000-10049 execution time Sort code (core/sql/sort/*) sort/SortError.h 
11100-11399 UDR server and language manager code (core/sql/udrserv/*)udrserv/udrdefs.h

 

...

 




Info

When adding new error diagnostics, pay attention to the management of ComDiagsArea objects. In the Executor, in particular, these objects are created on demand only. See also SQL Diagnostics Architecture and Design.

...

Page properties
hiddentrue


 
Related issues