@@ -407,7 +407,7 @@ EXEC SQL SELECT foo INTO :FooBar FROM table1 WHERE ascii = 'doodad';
407407 </para>
408408
409409 <para>
410- Also, a configuration parameter can be retreived with the
410+ Also, a configuration parameter can be retrieved with the
411411 <literal>SHOW</literal> command:
412412<programlisting>
413413EXEC SQL SHOW search_path INTO :var;
@@ -983,7 +983,7 @@ VARCHAR v2[128];
983983 the pgtypes library. The pgtypes library, described in detail
984984 in <xref linkend="ecpg-pgtypes"> contains basic functions to deal
985985 with those types, such that you do not need to send a query to
986- the SQL server just for adding an interval to a timestamp for
986+ the SQL server just for adding an interval to a time stamp for
987987 example.
988988 </para>
989989
@@ -1038,9 +1038,9 @@ ts = 2010-06-27 18:03:56.949343
10381038
10391039 <para>
10401040 In addition, the DATE type can be handled in the same way. The
1041- program has to include pg_types_date.h, declare a host variable
1041+ program has to include <filename> pg_types_date.h</filename> , declare a host variable
10421042 as the date type and convert a DATE value into a text form using
1043- PGTYPESdate_to_asc() function. For more details about the
1043+ <function> PGTYPESdate_to_asc()</function> function. For more details about the
10441044 pgtypes library functions, see <xref linkend="ecpg-pgtypes">.
10451045 </para>
10461046 </sect4>
@@ -1173,12 +1173,12 @@ EXEC SQL END DECLARE SECTION;
11731173 is a way to store some text string in <type>char[]</type>
11741174 or <type>VARCHAR[]</type>, as
11751175 explained <xref linkend="ecpg-char">. The second use case is to
1176- retreive multiple rows from a query result without using a
1176+ retrieve multiple rows from a query result without using a
11771177 cursor. Without an array, to process a query result consisting
11781178 of multiple rows, it is required to use a cursor and
11791179 the <command>FETCH</command> command. But with array host
11801180 variables, multiple rows can be received at once. The length of
1181- the array has to be defined to be able to accomodate all rows,
1181+ the array has to be defined to be able to accommodate all rows,
11821182 otherwise a buffer overflow will likely occur.
11831183 </para>
11841184
@@ -1239,7 +1239,7 @@ oid=0, dbname=
12391239
12401240 <para>
12411241 The following example retrieves OIDs, names, and sizes of the
1242- avilable databases from the <literal>pg_database</literal>
1242+ available databases from the <literal>pg_database</literal>
12431243 system table and using
12441244 the <function>pg_database_size()</function> function. In this
12451245 example, a structure variable <varname>dbinfo_t</varname> with
@@ -3006,7 +3006,7 @@ int PGTYPEStimestamp_fmt_asc(timestamp *ts, char *output, int str_len, char *fmt
30063006 <listitem>
30073007 <para>
30083008 <literal>%p</literal> - is replaced by national representation of
3009- either " ante meridiem" or " post meridiem" as appropriate.
3009+ either <quote> ante meridiem</quote> or <quote> post meridiem</quote> as appropriate.
30103010 </para>
30113011 </listitem>
30123012 <listitem>
@@ -3852,7 +3852,7 @@ EXEC SQL DESCRIBE prepared_statement INTO mysqlda;
38523852 </procedure>
38533853
38543854 <sect3>
3855- <title>SQLDA Datac Structure</title>
3855+ <title>SQLDA Data Structure</title>
38563856
38573857 <para>
38583858 SQLDA uses three data structure
@@ -4080,7 +4080,7 @@ struct sqlname
40804080 </sect3>
40814081
40824082 <sect3 id="ecpg-sqlda-output">
4083- <title>Retreiving a Result Set Using an SQLDA</title>
4083+ <title>Retrieving a Result Set Using an SQLDA</title>
40844084
40854085 <procedure>
40864086 <para>
@@ -4265,9 +4265,9 @@ free(sqlda2);
42654265
42664266 <para>
42674267 This application joins two system tables, pg_database and
4268- pg_stat_database on the database oid , and also fetches and shows
4269- the database statistics which are retreived by two input
4270- parameters (a database " postgres" , and oid "1" ).
4268+ pg_stat_database on the database OID , and also fetches and shows
4269+ the database statistics which are retrieved by two input
4270+ parameters (a database <literal> postgres</literal> , and OID <literal>1</literal> ).
42714271 </para>
42724272
42734273 <para>
@@ -5832,7 +5832,7 @@ ECPG = ecpg
58325832 <para>
58335833 Large object functions have to be called in a transaction block, so
58345834 when autocommit is off, <command>BEGIN</command> commands have to
5835- be isssued explicitly.
5835+ be issued explicitly.
58365836 </para>
58375837
58385838 <para>
@@ -6616,7 +6616,7 @@ DECLARE <replaceable class="PARAMETER">cursor_name</replaceable> [ BINARY ] [ IN
66166616 <term><replaceable class="PARAMETER">prepared_name</replaceable></term>
66176617 <listitem>
66186618 <para>
6619- The name of a prepared query, either as an SQL identfier or a
6619+ The name of a prepared query, either as an SQL identifier or a
66206620 host variable.
66216621 </para>
66226622 </listitem>
@@ -7477,7 +7477,7 @@ SET DESCRIPTOR <replaceable class="PARAMETER">descriptor_name</replaceable> VALU
74777477 <term><replaceable class="PARAMETER">descriptor_item</replaceable></term>
74787478 <listitem>
74797479 <para>
7480- A token identifiying which item of information to set in the
7480+ A token identifying which item of information to set in the
74817481 descriptor. See <xref linkend="ecpg-named-descriptors"> for a
74827482 list of supported items.
74837483 </para>
@@ -8461,7 +8461,7 @@ int dectoasc(decimal *np, char *cp, int len, int right)
84618461 <literal>right</> to -1 indicates that all available decimal digits
84628462 should be included in the output. If the length of the output buffer,
84638463 which is indicated by <literal>len</> is not sufficient to hold the
8464- textual representation including the trailing NUL character , only a
8464+ textual representation including the trailing zero byte , only a
84658465 single <literal>*</> character is stored in the result and -1 is
84668466 returned.
84678467 </para>
@@ -8556,7 +8556,7 @@ int rdatestr(date d, char *str);
85568556 The function receives two arguments, the first one is the date to
85578557 convert (<literal>d</> and the second one is a pointer to the target
85588558 string. The output format is always <literal>yyyy-mm-dd</>, so you need
8559- to allocate at least 11 bytes (including the NUL- terminator) for the
8559+ to allocate at least 11 bytes (including the zero-byte terminator) for the
85608560 string.
85618561 </para>
85628562 <para>
0 commit comments