File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed
Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -1890,7 +1890,8 @@ EXEC SQL SELECT b INTO :val :val_ind FROM test1;
18901890</programlisting>
18911891 The indicator variable <varname>val_ind</varname> will be zero if
18921892 the value was not null, and it will be negative if the value was
1893- null.
1893+ null. (See <xref linkend="ecpg-oracle-compat"/> to enable
1894+ Oracle-specific behavior.)
18941895 </para>
18951896
18961897 <para>
@@ -9799,6 +9800,42 @@ risnull(CINTTYPE, (char *) &i);
97999800 </sect2>
98009801 </sect1>
98019802
9803+ <sect1 id="ecpg-oracle-compat">
9804+ <title><productname>Oracle</productname> Compatibility Mode</title>
9805+ <para>
9806+ <command>ecpg</command> can be run in a so-called <firstterm>Oracle
9807+ compatibility mode</firstterm>. If this mode is active, it tries to
9808+ behave as if it were Oracle <productname>Pro*C</productname>.
9809+ </para>
9810+
9811+ <para>
9812+ Specifically, this mode changes <command>ecpg</command> in three ways:
9813+
9814+ <itemizedlist>
9815+ <listitem>
9816+ <para>
9817+ Pad character arrays receiving character string types with
9818+ trailing spaces to the specified length
9819+ </para>
9820+ </listitem>
9821+
9822+ <listitem>
9823+ <para>
9824+ Zero byte terminate these character arrays, and set the indicator
9825+ variable if truncation occurs
9826+ </para>
9827+ </listitem>
9828+
9829+ <listitem>
9830+ <para>
9831+ Set the null indicator to <literal>-1</literal> when character
9832+ arrays receive empty character string types
9833+ </para>
9834+ </listitem>
9835+ </itemizedlist>
9836+ </para>
9837+ </sect1>
9838+
98029839 <sect1 id="ecpg-develop">
98039840 <title>Internals</title>
98049841
You can’t perform that action at this time.
0 commit comments