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;
1890
1890
</programlisting>
1891
1891
The indicator variable <varname>val_ind</varname> will be zero if
1892
1892
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.)
1894
1895
</para>
1895
1896
1896
1897
<para>
@@ -9799,6 +9800,42 @@ risnull(CINTTYPE, (char *) &i);
9799
9800
</sect2>
9800
9801
</sect1>
9801
9802
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
+
9802
9839
<sect1 id="ecpg-develop">
9803
9840
<title>Internals</title>
9804
9841
You can’t perform that action at this time.
0 commit comments