1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.75 2006/09/21 09:10:27 meskes Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.76 2006/09/22 15:22:04 tgl Exp $ -->
2
2
3
3
<chapter id="ecpg">
4
4
<title><application>ECPG</application> - Embedded <acronym>SQL</acronym> in C</title>
@@ -1137,7 +1137,7 @@ date PGTYPESdate_from_asc(char *str, char **endptr);
1137
1137
<para>
1138
1138
The following input formats are allowed:
1139
1139
<table>
1140
- <title>Valid input formats for <function>PGTYPESdate_from_asc</function>.
1140
+ <title>Valid input formats for <function>PGTYPESdate_from_asc</function></title>
1141
1141
<tgroup cols="2">
1142
1142
<thead>
1143
1143
<row>
@@ -1394,7 +1394,7 @@ int PGTYPESdate_fmt_asc(date dDate, char *fmtstring, char *outbuf);
1394
1394
you an idea of how to use this function. All output lines are based on
1395
1395
the same date: November, 23rd, 1959.
1396
1396
<table>
1397
- <title>Valid input formats for <function>PGTYPESdate_fmt_asc</function>.
1397
+ <title>Valid input formats for <function>PGTYPESdate_fmt_asc</function></title>
1398
1398
<tgroup cols="2">
1399
1399
<thead>
1400
1400
<row>
@@ -1484,7 +1484,7 @@ int PGTYPESdate_defmt_asc(date *d, char *fmt, char *str);
1484
1484
The following table indicates a few possible formats. This will give
1485
1485
you an idea of how to use this function.
1486
1486
<table>
1487
- <title>Valid input formats for <function>rdefmtdate</function>.
1487
+ <title>Valid input formats for <function>rdefmtdate</function></title>
1488
1488
<tgroup cols="2">
1489
1489
<thead>
1490
1490
<row>
@@ -1612,7 +1612,7 @@ timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr);
1612
1612
<para>
1613
1613
The following table contains a few examples for input strings:
1614
1614
<table>
1615
- <title>Valid input formats for <function>PGTYPEStimestamp_from_asc</function>.
1615
+ <title>Valid input formats for <function>PGTYPEStimestamp_from_asc</function></title>
1616
1616
<tgroup cols="2">
1617
1617
<thead>
1618
1618
<row>
@@ -2272,7 +2272,6 @@ void PGTYPESdecimal_free(decimal *var);
2272
2272
</para>
2273
2273
</listitem>
2274
2274
</varlistentry>
2275
- <variablelist>
2276
2275
2277
2276
<varlistentry>
2278
2277
<term><literal>PGTYPES_DATE_BAD_DATE</literal></term>
@@ -2282,7 +2281,6 @@ void PGTYPESdecimal_free(decimal *var);
2282
2281
</para>
2283
2282
</listitem>
2284
2283
</varlistentry>
2285
- <variablelist>
2286
2284
2287
2285
<varlistentry>
2288
2286
<term><literal>PGTYPES_DATE_ERR_EARGS</literal></term>
@@ -2292,7 +2290,6 @@ void PGTYPESdecimal_free(decimal *var);
2292
2290
</para>
2293
2291
</listitem>
2294
2292
</varlistentry>
2295
- <variablelist>
2296
2293
2297
2294
<varlistentry>
2298
2295
<term><literal>PGTYPES_DATE_ERR_ENOSHORTDATE</literal></term>
@@ -2302,7 +2299,6 @@ void PGTYPESdecimal_free(decimal *var);
2302
2299
</para>
2303
2300
</listitem>
2304
2301
</varlistentry>
2305
- <variablelist>
2306
2302
2307
2303
<varlistentry>
2308
2304
<term><literal>PGTYPES_INTVL_BAD_INTERVAL</literal></term>
@@ -2312,7 +2308,6 @@ void PGTYPESdecimal_free(decimal *var);
2312
2308
</para>
2313
2309
</listitem>
2314
2310
</varlistentry>
2315
- <variablelist>
2316
2311
2317
2312
<varlistentry>
2318
2313
<term><literal>PGTYPES_DATE_ERR_ENOTDMY</literal></term>
@@ -2322,7 +2317,6 @@ void PGTYPESdecimal_free(decimal *var);
2322
2317
</para>
2323
2318
</listitem>
2324
2319
</varlistentry>
2325
- <variablelist>
2326
2320
2327
2321
<varlistentry>
2328
2322
<term><literal>PGTYPES_DATE_BAD_DAY</literal></term>
@@ -2332,7 +2326,6 @@ void PGTYPESdecimal_free(decimal *var);
2332
2326
</para>
2333
2327
</listitem>
2334
2328
</varlistentry>
2335
- <variablelist>
2336
2329
2337
2330
<varlistentry>
2338
2331
<term><literal>PGTYPES_DATE_BAD_MONTH</literal></term>
@@ -2342,7 +2335,6 @@ void PGTYPESdecimal_free(decimal *var);
2342
2335
</para>
2343
2336
</listitem>
2344
2337
</varlistentry>
2345
- <variablelist>
2346
2338
2347
2339
<varlistentry>
2348
2340
<term><literal>PGTYPES_TS_BAD_TIMESTAMP</literal></term>
@@ -2415,12 +2407,12 @@ void PGTYPESdecimal_free(decimal *var);
2415
2407
of ecpg. pgtypeslib maps SQL data types to data types within the C host
2416
2408
program and most of the additional functions of the Informix compatibility
2417
2409
mode allow you to operate on those C host program types. Note however that
2418
- the extend of the compatibility is limited. It does not try to copy Informix
2419
- behaviour but it allows you to do more or less the same operations and gives
2410
+ the extent of the compatibility is limited. It does not try to copy Informix
2411
+ behaviour; it allows you to do more or less the same operations and gives
2420
2412
you functions that have the same name and the same basic behavior but it is
2421
2413
no drop-in replacement if you are using Informix at the moment. Moreover,
2422
2414
some of the data types are different. For example,
2423
- <productname>PostgreSQL's<productname> datetime and interval types do not
2415
+ <productname>PostgreSQL's</ productname> datetime and interval types do not
2424
2416
know about ranges like for example <literal>YEAR TO MINUTE</> so you won't
2425
2417
find support in ecpg for that either.
2426
2418
</para>
@@ -2437,11 +2429,12 @@ void PGTYPESdecimal_free(decimal *var);
2437
2429
synonym for ecpg's <literal>DISCONNECT CURRENT</>.
2438
2430
<programlisting>
2439
2431
$CLOSE DATABASE; /* close the current connection */
2440
- EXEC SQL ClOSE DATABASE;
2432
+ EXEC SQL CLOSE DATABASE;
2441
2433
</programlisting>
2442
2434
</para>
2443
2435
</listitem>
2444
2436
</varlistentry>
2437
+ </variablelist>
2445
2438
</para>
2446
2439
</sect2>
2447
2440
@@ -3452,6 +3445,8 @@ int rsetnull(int t, char *ptr);
3452
3445
</para>
3453
3446
</listitem>
3454
3447
</itemizedlist>
3448
+ </para>
3449
+
3455
3450
<para>
3456
3451
Here is an example of a call to this function:
3457
3452
<programlisting>
@@ -4619,6 +4614,7 @@ EXEC SQL UPDATE Tbl SET col = MYNUMBER;
4619
4614
</listitem>
4620
4615
</varlistentry>
4621
4616
</variablelist>
4617
+ </para>
4622
4618
4623
4619
<para>
4624
4620
Example:
0 commit comments