Skip to content

Commit 71ac48f

Browse files
author
Michael Meskes
committed
Documented some ecpg command line options that were missing:
-r no_indicator -r prepare -r questionsmarks
1 parent 27dc7e2 commit 71ac48f

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

doc/src/sgml/ref/ecpg-ref.sgml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,35 @@ PostgreSQL documentation
135135
<term><option>-r <replaceable>option</replaceable></option></term>
136136
<listitem>
137137
<para>
138-
Selects a run-time behavior. Currently,
139-
<replaceable>option</replaceable> can only be
140-
<literal>no_indicator</literal>.
138+
Selects run-time behavior. <replaceable>Option</replaceable> can be
139+
one of the following:
140+
<variablelist>
141+
<varlistentry>
142+
<term><option>no_indicator</option></term>
143+
<listitem>
144+
<para>
145+
Do not use indicators but instead use special values to represent
146+
NULLs. Historically there have been databases using this approach.
147+
</para>
148+
</varlistentry>
149+
<varlistentry>
150+
<term><option>prepare</option></term>
151+
<listitem>
152+
<para>
153+
Prepare all statements before using them. Libecpg will keep a cache of
154+
prepared statments and reuse a statement if it gets executed again. If the
155+
cache runs full, libecpg will free the least used statement.
156+
</para>
157+
</varlistentry>
158+
<varlistentry>
159+
<term><option>questionmarks</option></term>
160+
<listitem>
161+
<para>
162+
Allow questionmark as placeholder for compatibility reasons.
163+
This used to be the default long ago.
164+
</para>
165+
</varlistentry>
166+
</variablelist>
141167
</para>
142168
</listitem>
143169
</varlistentry>

0 commit comments

Comments
 (0)