-<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.97 2010/02/19 00:15:25 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.98 2010/02/27 04:29:44 tgl Exp $ -->
<chapter id="ecpg">
<title><application>ECPG</application> - Embedded <acronym>SQL</acronym> in C</title>
EXEC SQL DESCRIBE mystmt INTO sqlda;
- printf("# of fields: %d\n", sqlda->sqld);
- for (i = 0; i < sqlda->sqld; i++)
- printf("field %d: \"%s\"\n", sqlda->sqlvar[i]->sqlname);
+ printf("# of fields: %d\n", sqlda->sqld);
+ for (i = 0; i < sqlda->sqld; i++)
+ printf("field %d: \"%s\"\n", sqlda->sqlvar[i]->sqlname);
EXEC SQL DECLARE mycursor CURSOR FOR mystmt;
EXEC SQL OPEN mycursor;
EXEC SQL CLOSE mycursor;
free(sqlda); /* The main structure is all to be free(),
- * sqlda and sqlda->sqlvar is in one allocated area */
+ * sqlda and sqlda->sqlvar is in one allocated area */
</programlisting>
For more information, see the <literal>sqlda.h</> header and the
<literal>src/interfaces/ecpg/test/compat_informix/sqlda.pgc</literal> regression test.
-<!-- $PostgreSQL: pgsql/doc/src/sgml/hstore.sgml,v 1.7 2010/02/17 04:19:37 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/hstore.sgml,v 1.8 2010/02/27 04:29:44 tgl Exp $ -->
<sect1 id="hstore">
<title>hstore</title>
<para>
<type>hstore</> has GiST and GIN index support for the <literal>@></>,
- <literal>?</>, <literal>?&</> and <literal>?|</> operators. For example:
+ <literal>?</>, <literal>?&</> and <literal>?|</> operators. For example:
</para>
<programlisting>
CREATE INDEX hidx ON testhstore USING GIST (h);
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.122 2010/02/22 23:51:40 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.123 2010/02/27 04:29:44 tgl Exp $
PostgreSQL documentation
-->
For example, you can specify a constraint that
no two rows in the table contain overlapping circles
(see <xref linkend="datatype-geometric">) by using the
- <literal>&&</> operator.
+ <literal>&&</> operator.
</para>
<para>
<programlisting>
CREATE TABLE circles (
c circle,
- EXCLUDE USING gist (c WITH &&)
+ EXCLUDE USING gist (c WITH &&)
);
</programlisting>
</para>