Check for ANSI-standard SQL syntax
- You can set the DBANSIWARN environment variable.
After you set the DBANSIWARN environment variable, every time you compile or run the program, checks for ANSI compatibility. For information about how to set DBANSIWARN, see the HCL OneDB Guide to SQL: Reference. For details about how to check for runtime warnings, see Opaque data types. For details on how to set environment variables, see the HCL OneDB Client Products Installation Guide for your operating system.
- You can specify the -ansi option at compile time whenever
you want to check for ANSI compatibility.
The -ansi option does not cause to check for ANSI compatibility at run time.
esql -ansi demo1.ec
If you compile a program with both the -ansi and -xopen options, the preprocessor generates warning messages for HCL OneDB extensions to both ANSI and X/Open SQL syntax.