|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.104 2010/08/17 04:37:20 petere Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.105 2010/09/02 14:46:44 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="ecpg"> |
4 | 4 | <title><application>ECPG</application> - Embedded <acronym>SQL</acronym> in C</title> |
@@ -778,9 +778,9 @@ free(out); |
778 | 778 | <xref linkend="datatype-numeric"> for the equivalent type in the |
779 | 779 | <productname>PostgreSQL</> server. Because of the arbitrary precision this |
780 | 780 | variable needs to be able to expand and shrink dynamically. That's why you |
781 | | - can only create variables on the heap by means of the |
| 781 | + can only create numeric variables on the heap, by means of the |
782 | 782 | <function>PGTYPESnumeric_new</> and <function>PGTYPESnumeric_free</> |
783 | | - functions. The decimal type, which is similar but limited in the precision, |
| 783 | + functions. The decimal type, which is similar but limited in precision, |
784 | 784 | can be created on the stack as well as on the heap. |
785 | 785 | </para> |
786 | 786 | <para> |
@@ -2192,12 +2192,14 @@ int PGTYPESinterval_copy(interval *intvlsrc, interval *intvldest); |
2192 | 2192 | <title>The decimal type</title> |
2193 | 2193 | <para> |
2194 | 2194 | The decimal type is similar to the numeric type. However it is limited to |
2195 | | - a maximal precision of 30 significant digits. In contrast to the numeric |
| 2195 | + a maximum precision of 30 significant digits. In contrast to the numeric |
2196 | 2196 | type which can be created on the heap only, the decimal type can be |
2197 | 2197 | created either on the stack or on the heap (by means of the functions |
2198 | | - <function>PGTYPESdecimal_new()</> and <function>PGTYPESdecimal_free()</>. There are a lot of other |
2199 | | - functions that deal with the decimal type in the <productname>Informix</productname> compatibility |
2200 | | - mode described in <xref linkend="ecpg-informix-compat">. |
| 2198 | + <function>PGTYPESdecimal_new</> and |
| 2199 | + <function>PGTYPESdecimal_free</>). |
| 2200 | + There are a lot of other functions that deal with the decimal type in the |
| 2201 | + <productname>Informix</productname> compatibility mode described in <xref |
| 2202 | + linkend="ecpg-informix-compat">. |
2201 | 2203 | </para> |
2202 | 2204 | <para> |
2203 | 2205 | The following functions can be used to work with the decimal type and are |
|
0 commit comments