38.16. Режим совместимости с Oracle
Препроцессор ecpg может работать в так называемом режиме совместимости с Oracle. Если этот режим включён, ecpg старается работать как Pro*C в Oracle.
В этом режиме изменяются три аспекта работы ecpg:
Массивы символов, принимающие строки символов, дополняются завершающими пробелами до указанной длины.
Завершаются эти массивы нулевым байтом, а если происходит усечение строки, устанавливается индикатор.
Когда в массив символов поступает пустая строка, индикатор NULL принимает значение
-1.
38.16. Oracle Compatibility Mode
ecpg can be run in a so-called Oracle compatibility mode. If this mode is active, it tries to behave as if it were Oracle Pro*C.
Specifically, this mode changes ecpg in three ways:
Pad character arrays receiving character string types with trailing spaces to the specified length
Zero byte terminate these character arrays, and set the indicator variable if truncation occurs
Set the null indicator to
-1when character arrays receive empty character string types